[jQuery] Re: Simple .post won't work

2009-05-03 Thread erikober
Brian, thanks for the reply. What you said makes total sense. I guess I was misinterpreting what .post() was supposed to invoke. I guess my impression from the docs, was that it was the alternative to the ajax method and would refresh the page such as submitting a traditional form to itself (or an

[jQuery] Simple .post won't work

2009-05-03 Thread erikober
Hello. Jquery noob, but lovin it. Can't get a rudimentary post to work, but probably missing something very simple. Alerts are working, but div content is never updated. Following in file called "select.php": -- http://code.jquery.c

[jQuery] Re: replacing more than once

2008-12-21 Thread erikober
On Dec 21, 7:49 am, Dave Methvin wrote: > > Why does replaceAll only seem to work once in this example? > > I guess you meant replaceWith? > Yes, my mistake. > > $("#hello").replaceWith("foo"); > > Once this code executes, it has replaced the element with > id="hello" (and any children) w

[jQuery] replacing more than once

2008-12-20 Thread erikober
Total newbie. Any help appreciated. Why does replaceAll only seem to work once in this example? Thanks very much! http://www.w3.org/TR/html4/loose.dtd";> var i = 0; $(document).ready(function(){ $("#firstButton").click(function () { $("#hello").replaceWith("foo"); });