Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Affect an hidden field?

Status
Not open for further replies.

kruxty

Programmer
Jul 17, 2001
197
PT
Hi,

I've i cycle that creates an amount of checkbox. The number of checkboxes depends of the hour of the day.
After the creation i need to check the values of this checkboxes. My problem is i don't know how many boxes there are...
So i thought of creating a hidden field, affect it value and get it from there.
How can i affect a hidden value?
txthidden.value=countvar?!?!?!?!

Tkx to all help

If there is any other ideia for this... just say it!
K.
 
You want your HTML form element to look something like this:
<input type="hidden" name="BoxCount" value="10">
 
Yes that is the aspect that i want the html appear, but i need to affect that value field in the while cycle.
 
Why not increment counter inside the loop and then write this hidden element immediately after the loop terminates?
 
you need to do a little javascript thing here that gives you count...i would suggest to post your question in the javascript forums...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top