Hi all,
I have a situation where the second select list option is generated from the first select list selected option. Like when we select Country corresponding states are generated in next select list.
In my case I am having multiple forms on single page which are same. Can anyone let me know how to implement it on multiple forms.
I tried the following code but it didn't work
$(".country").change(function(){
$.get("sample.php?val=" + $(this).val(),
function(data){
$(this).parent().next().children('.state').children('option').remove();
$(this).parent().next().children('.state').append(data);
});
Waiting for your support thanks in advance