My table contains following records
employee_no employee_name
101 aa
102 bb
103 cc
I am populating all the employee_no's in my drop down list.
when i select the particular employee_no in the drop down the corresponding employee_name should show in the text box.
for example when i select employee_no->101 ,corresponding the employee_name "aa" should come in the text box.
I am using MVC 5.
Manas MohapatraPosted Dec 17, 2015, 12:56 AM
Saineshwar BageriPosted Dec 17, 2015, 12:55 AM
var Id =$(this).val();
// Send Ajax call and get Task name
var Url = 'http://example.com/Controller/Action/?id='+Id ;
$.ajax({
url: Url ,
success: function(result) {
$('input#taskname').val(result);
},
error: function(error) {
alert(errorss);
}
});
});
Ravi PatelPosted Dec 17, 2015, 12:53 AM