javascript - IE issue - jQuery .change() is not triggering callback when using checkbox/radio button? -
i have form multiple inputs, either radio or checkboxes. upon clicking specific checkbox/radio button, trigger "checked" of other checkbox/radio button. seems on ie 8-10, .change()'s callback happen when input element loses focus.
how can make trigger callback change detected?
maybe i'm making mistake js method:
$(function() { $("#table_id input").change(function() { // w/e stuff if (this_guy_is_checked) { check_this_other_guy(); } }); });
use click binding rather change binding.. change not registered until element loses focus. (in ie)
$(element).click(function(){ //do });
Comments
Post a Comment