The former is better On 8/10/09, Jesper F <jesperfjoel...@gmail.com> wrote: > > I Include my javascript in an includefile. Which is better way to > organize the jQuery code: > > $(function(){ > $(".myboxclass").corner("7px"); > $("#myrandomdiv").corner("7px"); > }); > > > or > > > $(function(){ > $(".myboxclass").corner("7px"); > }); > > $(function(){ > $("#myrandomdiv").corner("7px"); > }); > > > that is in two sections. Is the last just wasting space? they seem to > be working the same. > Thanks. >
-- Toshiya TSURU <turutos...@gmail.com> http://www.google.com/profiles/turutosiya