Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1490 How do I only enable a submit image button when one or more checkboxes within a form have changed?

irt.org | Knowledge Base | JavaScript | Form | Q1490 [ previous next ]

Q1490 How do I only enable a submit image button when one or more checkboxes within a form have changed?

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.