I have a textbox and a linkbutton, i want that if textbox is empty then linkbutton disabled otherwise linkbutton enabled.
code are :
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.


Manas MohapatraRank #182 · 13.2K reputationPosted Jul 25, 2015, 3:22 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Jul 25, 2015, 1:26 AM EDT
Rohan GuptaRank #2,588 · 539 reputationPosted Jul 25, 2015, 3:25 AM EDT
Rahul PrajapatRank #1,209 · 1.5K reputationPosted Jul 25, 2015, 2:09 AM EDT
Jiyaul MustaphaRank #5,573 · 294 reputationPosted Sep 13, 2019, 8:44 PM EDT