I\'ve jQuery function on change for a select element:
$(\"#category\").change(function(){
$(\"table[id=advance_search]\").append(\"
-
You need to subscribe with on() function, because when you subscribong with change
element doesn't exists in DOM and jQuery can't find it.
$("select[id=type]").on('change', function(){
console.log("change");
});
- 热议问题