I have a Div tag named 'composeplan' which on clicking on a button displays a few textboxes. i used innerHTML to replace contents in div tag with html text for creating Textboxes using <input type="text" > etc to display those textboxes
Now when i try to read value in textbox using its id like document.getElementById("flight_no") i get 'undefined' as value
I tried document.getElementById("flight_no").value still output 'undefined'
document.getElementById("flight_no").id returns 'flight_no' i.e id of text box
Can please suggest some solution to read value from textbox.
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.