hi friends
How to diseable checkbox on selected index event of dropdown
using javascript function
How to diseable checkbox on selected index event of dropdown
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Sep 14, 2011, 2:24 AM EDT
Try this attachments,
Thanks
If this post helps you mark it as answer
sagar Bhosale162 reputationPosted Sep 14, 2011, 3:07 AM EDT
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)