Jquery
$(document).ready(function(){
var subjectSel = $("#subjectSel") ;
//alert(subjectSel.val()) ;
subjectSel.combobox({
onChange:function(newValue,oldValue){
item_update.requestSecondSubject(newValue) ;
}
}) ;
});
$(function(){
}) ;
window.onload = function () {
};
本文介绍如何利用jQuery为网页中的下拉选择框(subjectSel)添加动态改变事件(onChange),当用户更改选择项时,会触发特定函数(item_update.requestSecondSubject)进行进一步处理。
1624

被折叠的 条评论
为什么被折叠?



