Javascript function call causes error

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2010-03-25T03:02:19Z Indexed on 2010/03/25 3:03 UTC
Read the original article Hit count: 372

Filed under:
|
|

I am trying to call a function "makeQuery" and it's not working, FireBug is telling me:

missing ; before statement
[Break on this error] makeQuery(this.id){\n

I don't quite understand where it wants me to put the ";"

$(".predicate").click(function () {
    makeQuery(this.id){
    alert(this.id);
    }
});

function makeQuery(value){
    queryString = queryString+"val="+value+"&";
    variables = variables+1;
    alert(queryString);
    alert(variables);           
}

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about functions