Skip to content
WJunction - Webmaster Forum

remove attribute in jquery itself

Status
Not open for further replies.
Hi !
I searched most of the functions in jquery website but couldn't find solution for this one.

Example :

$('.someclass').mousedown(function(){//do something once});

As you know mosedowning every time,starts the function again.
So i was wondering how can i remove '.mousedown' from jquery after it is completed once.Maybe something with remove() or empty() ?
 

3 comments

Status
Not open for further replies.

About the author

Porsche_maniak
Established Member · Joined
Auto racing,Porsche,Web Development
283
Messages
0
Reactions
16
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom