change和onChange

change是jquery上的绑定事件,可用于下拉框动态关联数据:

$(function(){

  $("#id").change(function(e){

    alert($(this));

  });  

});

<input  id="sdf" name="#" value="3" onChange="fun(this)"/>

function fun(e){

  alert($(e));

}

原文地址:https://www.cnblogs.com/mryangbo/p/10563709.html