Re: [jQuery] two questions

2009-10-30 Thread waseem sabjee
this is one of my favorite jquery reference links http://docs.jquery.com/Events On Fri, Oct 30, 2009 at 2:30 PM, waseem sabjee wrote: > try this > > have an html markup like this > > > > > > > > > > here is the jQuery that i would use > > $(function() { > var obj = $(".wrap"); // we w

Re: [jQuery] two questions

2009-10-30 Thread waseem sabjee
try this have an html markup like this here is the jQuery that i would use $(function() { var obj = $(".wrap"); // we want the object to be our div wrapper var mybutton = $(".mybutton", obj); // we declare our button within the object var myimg = $(".imgwrap", obj); // we declare