Jump to content

benlotan

Members
  • Posts

    2
  • Joined

  • Last visited

benlotan's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. benlotan

    AJAX

    thank you, much appreciated
  2. benlotan

    AJAX

    I;m trying to get this to work, i was hoping someone might know how to pull this off...my goal is a text box which you type in someting and click submit, the text form clears and the entered text appears in a div below the text field with a check box next to it. you can enter multiple words... so far i think it works, but when i look at it in the browser it dissapears right away...can anyone help?thankshere is the bit of code<html><head><script type="text/css"></script><script type="text/javascript"> var cb = 1; var stuff = new String; function go() { var e = document.getElementById('email'); var p = document.getElementById('place'); stuff += String(e.value + '<input type="checkbox" id ="'+cb+'"><br>'); p.innerHTML = stuff; e.value = ""; }</script></head><body> <form> <input type="text" id="email"> <input type="submit" value="submit" onclick="go();"> </form> <div id="place"> </div></body></html>
×
×
  • Create New...