[jQuery] Re: First Attempt

2009-08-18 Thread James
It looks like clicking the (submit) button is also submitting the form, which loads the same page again with the default text size. Add a "return false" to prevent the form from submitting. $('#small').click(function() { $("#textsize").addClass("smalltext"); return false; }); On Aug 18,

[jQuery] Re: First Attempt

2009-08-18 Thread AMP
Its pretty simple, I've included all the code here: * A.html http://www.w3.org/1999/xhtml";> Untitled Document Hello World A.

[jQuery] Re: First Attempt

2009-08-18 Thread Charlie
this looks fine, must be something else css or script related. Perhaps you could create a test page at jsbin.com, it has an option to include jquery and therefore present live issues AMP wrote: Hello, When I click on the either button, the size changes correctly, but goes right back to the