How can I make a tag in IE7 submit the form, while doing all the form validation that is setup on the form?
if I just do a document.forms[0].submit(); it submits, but ignores form validation.
Edit: Everybody likes telling me to use the input tag... That will sumbit the form but wont work in my situation which is why i asked about the button tag...
<form action="my/script" onsubmit="return ValidateFunc();"> <button> <img src="image/do_this_with_input_tag.png"> Some Text </button> </form>
<button type="submit">?<input>tag. Anything you can accomplish with<button>tag can be achieved with an<input>and some CSS.