How to access a checkbox whose name is stored in a variable - Urgent please help

R

Ranju

Hi,

I have a situtation where the name of my checkbox is stored in a
variable. How do I access that checkbox

var strCheckName=""
.......
strCheckName = "chk1";
document.myform.chk1.value - I need to do this by using strCheckName
- something like document.myform.strCheckName.value.

Thanks and warm regards,
Ranju
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top