I am having some trouble having my link function to execute javascript.
link:
<a class="glossyBtn" id="saveButton">Save</a>
Script:
<script type="text/javascript">
$(function (){
$('form').submit(function () {
$('#saveButton').attr('disabled', 'disabled');
});
});
</script>
$('form').submit()is fired when you submit a form (usually with<button type="submit">). Your button is not of submit type.You may achieve it adding the following
onclickto your<a>element:onclick="$('form').sumbit();"or add the following to your JS code