Submit Form Using Label Tag

It's difficult to style submit inputs without using images or javascript.

As I know there is no way to insert HTML code right into the sumbit input value. And if I wrap submit input in a div element (for example to add multiple borders), not the whole area will be clickable.

Will a click on a label cause the submitting of the form in all browsers?

<form method="test.rb">
 <input type="text" name="test" id="test" />
 <label for="button">
  <input type="submit" name="button" id="button" value="Send!" />
 </label>
</form>
5
задан Denis Bobrovnikov 23 November 2010 в 15:33
поделиться