Activity Stream
48,167 MEMBERS
6724 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Default remove attribute in jquery itself

    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() ?
    Porsche_maniak Reviewed by Porsche_maniak on . remove attribute in jquery itself 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() ? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Coding Horror Fan
    I don't read PM's frequently .

  4.     
    #3
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    PHP Code: 
    $(".someclass").bind("mousedown",function(e){
        
    //callback
        
    $(this).unbind(e);
    }) 
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  5.     
    #4
    Member
    Website's:
    maxneeds.info
    Thanks !
    Bind and unbind work fine

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Hiring] Coder with exp in DLE, jquery
    By newshit in forum Completed Transactions
    Replies: 0
    Last Post: 11th Jan 2012, 09:42 PM
  2. JQuery help
    By xElliex in forum Web Development Area
    Replies: 5
    Last Post: 25th Aug 2011, 10:38 PM
  3. Wamp. How to remove read-only attribute?
    By tres in forum Technical Help Desk Support
    Replies: 2
    Last Post: 4th Dec 2010, 11:20 AM
  4. Anyone who knows Javascript / jquery / Css
    By Czechi in forum Completed Transactions
    Replies: 5
    Last Post: 17th Aug 2010, 06:41 AM
  5. Replies: 0
    Last Post: 13th Jan 2008, 01:32 AM

Tags for this Thread

BE SOCIAL