我需要在更改下拉列表的html元素之前和之后获取id。请参阅吹源代码。
当基金名称被选中时,我需要获取之前选择的复选框ID或名称(现金/ Epf)&选中的复选框ID或名称后面的(单位为Reedem / Amount Reedem / All units)。
提前谢谢。
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<head>
<script>
jQuery.noConflict();
jQuery(document).ready(function() {
alert("Hello world, part 2!");
callOtherDomain();
});
function callOtherDomain() {
var invocation = new XMLHttpRequest();
var username = "testuser";
var password = "testpass";
var url = 'http://someurl';
invocation.withCredentials = true;
invocation.open('GET', url, true);
invocation.send();
}
</script>
</head>
&#13;
function getContacts () {
jQuery.ajax({
type: "GET",
url: "http://some",
contentType: "application/json; charset=utf-8",
dataType: "json",
Username : "some",
password : "some",
success: function() { alert('GET completed'); }
});
}
&#13;