Let just think that i am using my control with model binding. now i want to get the control id without assign id. how to do that..?
its simple just use firebug of Firefox. click on firebug then click
now select your control you will see control id.
Now use this control in script like set value
@Html.TextBoxFor(m => m.ServiceBenifitPayment.ServiceBenefitNoOfDays)
its simple just use firebug of Firefox. click on firebug then click
now select your control you will see control id.
Now use this control in script like set value
document.getElementById('ServiceBenifitPayment_ServiceBenefitNoOfDays').value = ServiceBenefitDay;
Comments
Post a Comment