0
我jQuery的功能有一定的选择框代码:如何从另一个jQuery函数调用jQuery函数onchange事件
$("select#opt11")
.html(JSON_OPTION(geography,"Continent"))
.change(function(){
$('td#1').find("#opt12,#opt13,#opt14,#opt15,#b11,#b12,#b13,#b14").remove();
$('td#1').append('<br id="b11"><select id="opt12" style="width: 130px"> </select>');
callService(this.value); }
这callService必须是像另一个jQuery函数:
$(function() {
$.ajax({
type:'GET',
url:'URL/Services/rest/GWSWrapper/GetChartData',
dataType: 'json',
success:function(data,textStatus,jqXHR){
if(jqXHR.status==200){
alert(jqXHR.status);
$('#graphContainer').highcharts(data[0]);
}
if(jqXHR.status==500)
alert("Fail");
}
});
});
我不能够获得相同的正确语法。
由于一吨的Bhushan – user2093576
@ user2093576欢迎您。 – Bhushan