Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery if element is clicked

$("#element").click(function(){
    var $this = $(this);
    if($this.data('clicked')) {
        func(some, other, parameters);
    }
    else {
        $this.data('clicked', true);
        func(some, parameter);
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #element #clicked
ADD COMMENT
Topic
Name
3+5 =