You are here: irt.org | FAQ | JavaScript | Form | Q1490 [ previous next ]
Try one of the following:
<form name="myForm"> <input type="checkbox" onClick="if (document.images) document.images['subbut'].src='enabled.gif'"> - Check </form> <a href="javascript:;" onClick="if (document.images && document.images['subbut'].src.indexOf('disabled') ==-1) document.myForm.submit(); return false"><img name="subbut" src="disabled.gif"></a>