chekbox in javascript
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
how v can get value of chekbox (cheked or unchekd)in a javascript im using a content page .In dat page i put a chekbox with id=ChKPromoActive; i hav tried this code but it s returning null value var chkPromo = document.getElementById("ChKPromoActive"); alert(chkPromo);
-
how v can get value of chekbox (cheked or unchekd)in a javascript im using a content page .In dat page i put a chekbox with id=ChKPromoActive; i hav tried this code but it s returning null value var chkPromo = document.getElementById("ChKPromoActive"); alert(chkPromo);
Hi, You can use Html CheckBox for this purpose: Hello function Check() { var cc=document.getElementById("chk2"); alert(cc.checked); }
Naresh Patel