March 7th, 2013, 01:52 AM
Function for Input Boxes
Summary of task: Click on text, it appears in input box 1. Click on another text, it appears in box 2. Click again, box 3. If the first box has text in it, it will appear in the second, and so on.
However in the function below, the text never goes to Box 3. I don't know how to fix it!
var hasbeenset = false;
March 7th, 2013, 05:55 AM
Re: Function for Input Boxes
Your code might work better if you do something along the lines of: check if input 1 is blank (null or zero length string). If it is, set its contents to id, otherwise check if input 2 is blank. If it is, set its contents to id otherwise set input 3 contents to id.
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!