I have the following code to filter my sub select list form my list.
The following code works for my sub list,
The only thing is I want to filter my sub1, my sub2, my sub3, my sub 4 using the jQuery Ajax based on my list.
I realized that ajax only support one url, is it possible to have multi url to fill my sub2, sub3, sub4 list using ajax?
Your help and information is great appreciated,
Regards,
iccsi,
$("#Mylst").change(function()
{
$.ajax({
type: "GET",
url: "Components/mycfc.cfc?method=MyMethod&MyParam=" + jQuery("#Mylst").val(),
dataType: "json",
cache: false,
success: function(data)
{
$('#MySublst option').remove();
$.each(data, function(i, obj)
{
$("#MySublst").append('<option value=' + '"' + data[i][0] + '"' +'>' + data[i][1] + '</option>')
});
}
});