English, asked by sajju6243, 1 year ago

Difference between $(function() and $(document).ready

Answers

Answered by jaisal03
1
$(function() { $("a").click(function(event){ alert("Thanks for visiting!"); }); });

and this

$(document).ready(function(){ $("a").click(function(event){ alert("Thanks for visiting!"); }); });

pls thank it and mark brainiest answer
Similar questions