I have this jQuery script:
<script type="text/javascript">
$(document).ready(function{
$("#btnLogon").bind("click", function(){
$("#btnLogon").after('<span class="error">Please wait...</span>');
});
});
</script>
In Firebug I get the error message
missing ( before formal parameters
What am I doing wrong here?
$(document).ready(function{
should be
$(document).ready(function(){
<script language="javascript" type="text/javascript">
$(document).ready(function(){
$("#btnLogon").bind("click", function(){
$("#btnLogon").after('<span class="error">Please wait...</span>');
});
});
</script>
You were missing the parentheses after function
, on the second line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With