hi friends
How to diseable checkbox on selected index event of dropdown
using javascript function
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
sagar BhosalePosted Sep 14, 2011, 7:07 AM
var e = document.getElementById("ctl00_ContentMFBackOffice_ddlSchemes");
var strUser = e.options[e.selectedIndex].text;
alert();
if(document.write(strUser.lastIndexOf("G")!=-1))
{
document.getElementById('chbReinvestFlag').disabled= 'true';
}
else
{
document.getElementById('chbReinvestFlag').disabled= 'false';
}
}
is it correct java script function
i want disable checkbox when string end with (G)
e.g Tata(G)
Satyapriya NayakPosted Sep 14, 2011, 6:24 AM
Try this attachments,
Thanks
If this post helps you mark it as answer