I\'ve jQuery function on change for a select element:
$(\"#category\").change(function(){
$(\"table[id=advance_search]\").append(\"
-
try this:
$("select[id=type]").on("change",function(){
console.log("change");
});
As of jQuery 1.7, the .live() method is deprecated. Use .on() to
attach event handlers. Users of older versions of jQuery should use
.delegate() in preference to .live().
source:http://api.jquery.com/live/
- 热议问题