[jQuery] noob q - using $().html
Hi
Just getting into using js to do things. I'm just experimenting right now.
Here is my example code:
<p id="member_info">
<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" ... 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/