Eggzorcist Posted June 12, 2009 Share Posted June 12, 2009 Hi, What I am trying to do is change the this.value to the value of "f" of the text box above rathger than the value of the button. How what would the code be? Thanks <form> Package ID:<input name="id" type="text" id='id' value="f" size="10" maxlength="10" /> <br /> <input type='button' onclick='showUser(this.value)' value="Track"/> </form><br /> Quote Link to comment Share on other sites More sharing options...
rhodesa Posted June 12, 2009 Share Posted June 12, 2009 <input type='button' onclick='showUser(document.getElementById('id').value)' value="Track"/> Quote Link to comment Share on other sites More sharing options...
Eggzorcist Posted June 12, 2009 Author Share Posted June 12, 2009 is there another way of doing this? As it is interfeering with my ajax script? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.