vendredi 25 novembre 2016

How to i ignore the change event on page load

I have to ignore a change event on the page load, but i don't want remove the change().

<pre>
   $(".custom-select").change(function(){
       // code        
   }).trigger('change');
</pre>

Here i have a change event for select box drop down, because of the trigger('change') i am getting a web event on page load, If anyone knows how to ignore change event on page load without removing the trigger('change').




Aucun commentaire:

Enregistrer un commentaire