html form check value with text

0 votes
39 views
asked Dec 15, 2012 in HTML by kalpana (3,995 points)

 

    i have simple question, let's say i have input like this:

<input name="somename" type="checkbox" value="1" />

Is it possible to change value="1" to value="some text" or value="some_name". What i mean is it possible to use symbols instead of numbers?

1 Answer

0 votes
answered Dec 15, 2012 by john (4,220 points)

Of course you can. You can define the value you want.

Look at this sample: http://jsfiddle.net/UB9tV/

...