What is the difference between the following lines of code, or are they just 2 different ways to write the same thing:
$(\"p\").click(function() { some code here
Also note that binds allows for custom events
$(elem).bind('myEvent', function(){ alert('myEvent!'); }); $(elem).trigger('myEvent'); //alerts 'myEvent!'