Hi,
I have ajax call in my script which calls php file. I need to extract its response in two parts to add it on my page to different components each.
For example, say I have these two echo statements in my php:
echo "<option> add to list1 </option>";
echo "<option> add to list2 </option>";
Now, this output has to be added to seperate 'select' tags using jquery. How do I extract this separately from ajax response object?
In my script, say I have this:
$.ajax({
type:"post",
url:"myfirst.php",
success:function(response){
//insert first option into first select tag and second option into second select tag on my page here
}
});
Is there a trick to do this?
Thanks,
VC