JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!



Function for Input Boxes


D

keyboard_arrow_up
0
keyboard_arrow_down


First Post Mark as Spam dominique-ms
Posts: 1 - Registered: 2013-03-05 13:47:32

I am trying to create a function that puts the text you click on into 3 input boxes in order from Box 1 to Box 3. However with the function below, the text appears in Box 1 & 3 at the same time and then Box 2. How can I fix this?

function setInput(id){
if(hasbeenset)
{
document.getElementById("myinput2").value= id;
}
else if
(hasbeenset=true)

{
document.getElementById("myinput").value=id;

}
else
(hasbeenset=true)
{
document.getElementById("myinput3").value=id;

}




J

keyboard_arrow_up
0
keyboard_arrow_down


Reply #1 Mark as Spam joesimmons
Posts: 5 - Registered: 2013-09-06 14:02:57

How about the html code you're using'?






JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!




MENU
Advertising