Quick question about jQuery and DOM traversal. Look at the code below and tell me why would someone do one over the other? Is there any reason?
this
jQuery("div.section").click(function(){
jQuery(this).parent().parent().parent().next().find("div.section2").css("color","#fff")
})
instead of this.
jQuery("div.section").click(function(){
jQuery("div.section2").css("color","#fff")
})