Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to assign input value in html?

Thread Tools

How to assign input value in html?

MuhammedRefaat MuhammedRefaat is offline
Junior Member
Join Date: Sep 2013
Posts: 1
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

p.s. "itemoptions" is an array contains strings
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get JSON values and how to trace sessions?? Python 2 04-25-2013 02:12 PM
Assign to a HTML textbox a value with egsdar ASP .Net 2 11-18-2008 02:59 PM
Can't assign the value of an input element in ID?? dave Javascript 5 04-07-2008 11:04 PM
Pass input Array value to function to calc different input value Susan Cranford Javascript 2 07-05-2005 02:53 AM
Assign value to HTML control Grey ASP .Net 2 05-20-2004 10:32 AM