0
Hi all ,

I have one text box and submit button . I want to submit one by one value into the box and these values will be displayed one by one serially on the page .
ex. aaaa then
    bbbb then
    cccc then will display 


    <input type="text" name="txt" value=""><input type="submit" name="Submit" value="Submit">





Subrata Nandi
3
Contributors
3
Replies
5
Views
5 Years
Discussion Span
Last Post by subrata_ushasi
0

Heres a basic example of what i think you're asking:

<script type='text/javascript'>
function addValue(eid,addtoeid){
    var obj = document.getElementById(eid);
    var displayObj = document.getElementById(addtoeid);

    displayObj.innerHTML += obj.value+'<br/>';
    obj.value = '';
    obj.focus();
}
</script>
<input type='text' id='showText'/><a href='javascript:' onclick="addValue('showText','displayHTML');">Add</a><br/>

<div id='displayHTML'></div>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.