- Joined
- Sep 22, 2013
- Messages
- 1
- Reaction score
- 0
I have a checkbox declared as input into html, the way i use to give it a value is the ordinary way :-
<input type="checkbox" name="test" value="val">
but what if i want to get the value of the input by processing some code, i tried that like :-
<input type="checkbox" name="test" value=(itemoptions[oi]).toString()>
but that gives me ("(itemoptions[oi]).toString()") not the value of it :stupido3:
p.s. "itemoptions" is an array contains strings
<input type="checkbox" name="test" value="val">
but what if i want to get the value of the input by processing some code, i tried that like :-
<input type="checkbox" name="test" value=(itemoptions[oi]).toString()>
but that gives me ("(itemoptions[oi]).toString()") not the value of it :stupido3:
p.s. "itemoptions" is an array contains strings