student33 student33 - 4 months ago 11
HTML Question

Javascript error Uncaught SyntaxError: missing ) after argument list

im having trouble with this code. it says i am missing a closing parentheses but it seems all of them are closed.here is the code.

$(document).ready(funtion(){
$("#slide-toggle").click(funtion(){
alert("Hello");
});
});

Answer

funtion() ==> function()

Change :

 $(document).ready(funtion(){


$("#slide-toggle").click(funtion(){

To :

$(document).ready(function(){


$("#slide-toggle").click(function(){
Comments