How to assign input value in html?

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
 

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

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top