How to perform an event on Textbox focus in ASP MVC?
Posted
by
NewbieProgrammer
on Stack Overflow
See other posts from Stack Overflow
or by NewbieProgrammer
Published on 2014-06-04T15:22:23Z
Indexed on
2014/06/04
15:24 UTC
Read the original article
Hit count: 193
asp.net-mvc
|asp.net-mvc-4
I have three textboxes A, B and C in create user view. When user enters some text in textbox A and B, and then when he enters textbox C, I want to display the text of textbox A + text of textbox B in C with "-" in between.
For example,
He enters "ABC" in textBox A
and then he enters "123" in textBox B
. Now upon entering textBox C
(focus event), I want to display "ABC - 123 - " in textBox C. "-" are added through code.
How do I do that in MVC ?
© Stack Overflow or respective owner