I have the code
$('#resetbtnB').click(function() {
$('#bgfade').fadeIn('slow');
$('#webpopup').fadeIn('slow');
});
This will work if 'resetbtnB' is for example a paragraph or an image. However it does not work when 'resetbtnB' is an input button.
E.g.
Works with
<p id="resetbtnB"> Reset </p>
Not with
<input type="submit" value="Reset" name="resetbtnB" id="resetbtnB"/>
Why does this code not work for an input button and how can I change it to work?