11/14: Click the Button -BUG- Accepts incorrect code


#1

This is the code and it worked even though it is not correct syntactically.

$(document).ready(function(){
$(#button).click(function(){
var toAdd = $(input[]);
});
});



#2

Hey Ajay,

Thanks for reporting this! Unfortunately sometimes it's possible to mess up code so much that it's impossible for the SCT to catch the errors :confused: