Javascript - Disable submit button until 3 fields are not empty
问题 I have this almost working bit: http://jsfiddle.net/HFzkW/ My code looks like this: <div id="cform-container"> <div class="alignleft" id="cform"> <form action="<?php print site_url('/sent'); ?>" method="POST" > <input type="hidden" name="Contact-Form" value="contact-form" /> <div class="cform-row"> <div class="alignleft cform-label"><label for="yn">Your Name</label><span id="star5">*</span></div> <div class="alignright cform-ti"><input type="text" name="yn" id="yn" /><br /><span id="namespan"