form submit onclick not running jQuery function
Hi All, my first post..completely stumped.
My simple jQuery function below works on window.onload, body "onload=", but will not work when fired
from a forms submit button. i've tried 2 ways,
onclick in the forms button, and also, it's id in an unobtrusive jQuery function. the code is below. wh
function openConfirm() {
$(function() {
$('#confirm').fadeIn('normal');
});
}
the form code is - <input type="image" src="img/btn_submit.gif" value="Submit" alt="Submit" id="submitbtn" onclick="openConfirm()" > (not working)
also tried unobtrusively -
$(function() {
$('#submitbtn').click(function(event) {
alert('asdf');
$('#confirm').fadeOut('slow');
});
});
i know this should simple but,...it's not working !
thanks so much for any help