it's a form.. it's submitting. you get a new page... it's gone! if you target the form into an iframe you might get your desired results.
On 1/3/07, Daniel McBrearty <[EMAIL PROTECTED]> wrote: > Hi > > Just getting into using js to do things. I'm just experimenting right now. > > Here is my example code: > > > <p id="member_info"></p> > > <script type="text/javascript"> > function findMember(form){ > $("#member_info").html(form.username.value); > } > </script> > > <form name="find_member" action="" method=GET> > <input type="text" size="30" name="username"> > <input type="submit" onClick="findMember(this.form)" size="30" > value="Find by Username"> > </form> > > now what happens when I fill in a value and click is that the value I > entered into the text box appears in the "member_info" <p> ... but > disappears again almost straight away. > > any ideas? > > thanks. the lib looks nice and clean BTW. > > Daniel > > -- > Daniel McBrearty > email : danielmcbrearty at gmail.com > www.engoi.com : the multi - language vocab trainer > BTW : 0873928131 > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/