Ok, I think this will be an easy one...
I'm piecing together a variable like this:
cb=ikey+"_cb";
This variable ends up being the name of some checkboxes in a form. I want to place the variable in the following alert statement but it won't work!
alert(schedule.cb.length);
If I type in the real name of the form element like:
alert(schedule.145_cb.length);
it does work... So I'm clearly not using the correct syntax as the Javascript is using a literal CB instead of the variable CB. Any thoughts?
I'm piecing together a variable like this:
cb=ikey+"_cb";
This variable ends up being the name of some checkboxes in a form. I want to place the variable in the following alert statement but it won't work!
alert(schedule.cb.length);
If I type in the real name of the form element like:
alert(schedule.145_cb.length);
it does work... So I'm clearly not using the correct syntax as the Javascript is using a literal CB instead of the variable CB. Any thoughts?