Hello,
I am trying to write email confirmation with javascript:
<div class="step">
<h4>Enter your email address:</h4>
<div class="container">
<input type="text" name="email" value="Enter your email here" title="Enter your email here" class="field" />
</div>
<h5>Step 2 of 2</h5>
<span class="progress"><span style="width: 100%"> </span></span>
<input class="email-btn button" type="submit" value="Send" />
</form>
</div>
...
$('.email').click(function() {
var email = $(this).parent().find('email').val();
if (email == null) {
alert('Please enter your email address.');
}
return false;
};
How to write the javascript?