I want to add a very simple bit of code to a jsfiddle, but when ever I do it breaks everything else. This is the code I’d like to add:
$("#launcher").click(function(){
$("#profile_850_HEADER").animate({
margin-top: "10px"
}, 1500 );
});
and this is the jsfiddle http://jsfiddle.net/loriensleafs/F3wjg/3/ , I’m sure this is beyond simple but I can’t figure it out, any help would be greatly appreciated.
margin-top: "10px"should be:Or
Or simply (my preferred):
The unquoted
-(minus/hyphen sign) is not allowed in property names and results in a syntax error.