Welcome Guest, Not a member yet? Register   Sign In
Dropdown onchange
#2

[eluser]umefarooq[/eluser]
you can populate textbox with ajax onchange event of dropdown send a request to server and get the values and populate the textbox if you are using jquery then your code will be like this if you are getting json data from server

Code:
$("#dropdown_id").change(function(){
   $.post('url',send_data,function(return_data){
     $("#textbox_1_id").val(return_data.textbox_1_value);
$("#textbox_2_id").val(return_data.textbox_2_value);
});
,'json'
})


Messages In This Thread
Dropdown onchange - by El Forum - 11-01-2010, 03:26 PM
Dropdown onchange - by El Forum - 11-01-2010, 10:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB