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
Rahul Prajapat
NA
1.6k
638k
Want to disabled asp:LinkButton by javascript function
Jul 25 2015 4:44 AM
I have a textbox and a linkbutton, i want that if textbox is empty then linkbutton disabled otherwise linkbutton enabled.
code are :
<input runat="server" type="text" id="txtName" onblur="CheckName('txtName','LinkButton1')" />
<asp:LinkButton Enabled="false" ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">LinkButton</asp:LinkButton>
and javascript function are :
function CheckName(txt,btn)
{
var Name1= document.getElementById(txt).value;
if(Name1 != null)
{
document.getElementById(btn).disabled = false;
}
else
document.getElementById(btnNext).disabled = true;
}
Please help.
Thanks in advance.
Reply
Answers (
5
)
Kendo export to excel
ASp.net web and window