admin管理员组文章数量:1333451
$(document).ready(function(){
$("#input_6_4\\.3_label").html("City/Borough");
$("#input_6_8\\.3_label").html("City/Borough");
$("#gform_next_button_6_42").click(function(){
alert("hi");
)};
});
Firebug keeps spitting out a syntax error with the above code with the offender being these characters:
)};
Any ideas at what's wrong because the code seems good to me?
$(document).ready(function(){
$("#input_6_4\\.3_label").html("City/Borough");
$("#input_6_8\\.3_label").html("City/Borough");
$("#gform_next_button_6_42").click(function(){
alert("hi");
)};
});
Firebug keeps spitting out a syntax error with the above code with the offender being these characters:
)};
Any ideas at what's wrong because the code seems good to me?
Share Improve this question edited Aug 22, 2011 at 7:21 Brock Adams 93.7k23 gold badges241 silver badges305 bronze badges asked Aug 22, 2011 at 7:17 shahmeer navidshahmeer navid 2351 gold badge5 silver badges11 bronze badges 2- Hmm. Someone seems to be wanting to silently make a point. I think you received a down-vote for not phrasing the title as a question... – Tieson T. Commented Aug 22, 2011 at 7:22
- Also, if PaulPRO answered your question, don't forget to mark it as so. – Tieson T. Commented Aug 22, 2011 at 7:23
2 Answers
Reset to default 7They are in the wrong order:
)};
Should be:
});
it should be });
, you close your arguments list before closing the function body.
本文标签: javascriptjQuery Syntax ErrorStack Overflow
版权声明:本文标题:javascript - jQuery Syntax Error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742354038a2459059.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论