TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rohan Ramani
NA
786
144.5k
Call JavaScript function on <a> for show hide textbox
Dec 18 2019 4:46 AM
Hi All,
I want to show hide the textbox on click of <a> anchor tag, using javascript.
<asp:TextBox ID=
"txtMobile"
CssClass=
"form-control"
placeholder=
"Your Mobile Number"
runat=
"server"
required=
"required"
Style=
"display: none"
></asp:TextBox>
<asp:TextBox ID=
"txtEmail"
CssClass=
"form-control"
placeholder=
"Your Email Address"
runat=
"server"
required=
"required"
></asp:TextBox>
<a id=
"lnkToggle"
style=
"font-size: smaller"
>Sign in with mobile number?</a>
If I click SignIn with mobile then Mobile textbox should be visible, if I sign in with Email than Email textbox should be visible and hide the mobile textbox.
Reply
Answers (
2
)
Assingn the Value in C#
Autocomplete textbox not working Asp.net