i am building a select based on the values in a text box .
like
when ever a error occurs when the form is submitted the select does not work as ajax is a change function . how to say to jquery tht do it if the value in the text box is not null also i.e trigger a event ??
like
Code:
$("#pincode").change(function(){
$.post("doctor_search.php",{ pincode:$("#pincode").val()} ,function(data){
$("#suggestions").html(data);
});
});
Comment