I have two text boxes: A and B using Html.textboxfor. TextBox ‘A’ is enabled and TextBox ‘B’ is disabled.
When I type values in Textbox ‘A’ and change focus away from the textbox, TextBox ‘B’ should be populated with some value.
For example: I am entering the value of TextBox A = “King”; if the focus is lost from the box, the value in the Textbox B should be “Peter”, which should be filled automatically.
you can jsut give the textbox an attrbiute of onblur and call a method which will fill the second textbox
something like: