Pavlos1316 Posted November 18, 2014 Share Posted November 18, 2014 I have couple jquery codes in a single file: $(document).ready(function(){ $('#all').delegate('a.link', 'click', function(){ //more code here }) $('body').delegate('.nice', 'click', function(){ //more code here }) }); This works great but is it better to close each function using ; symbol? Even if I do or not the code works ok, BUT whats the correct way? Quote Link to comment Share on other sites More sharing options...
Solution CroNiX Posted November 18, 2014 Solution Share Posted November 18, 2014 Using ; like you are on the $(document).ready() Quote Link to comment Share on other sites More sharing options...
Pavlos1316 Posted November 18, 2014 Author Share Posted November 18, 2014 Using ; like you are on the $(document).ready() Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.