Could somebody tell me what is wrong with this script
Code:
$('input.make_purchase').click(
message = "Hello";
function(){
if(message){alert(message); return false;};
}
);
The simple idea is to disable the "Make Purchase" input button
and return an alert message.
For some reason it doesnt like the way I assigned the "message" variable.
Returns error message
Code:
missing ) after argument list
message = "Hello";\n
|