Monday, July 28, 2014

getting multiple values from text box using java script

Hi friends ,below coding will be used to get multiple values from a single text box without reloading the whole page,,,but still i am confused how to post it to server side,,although i have used "hidden form fields..it doesn't work,if anyone is able to do that..help me with your comments




<html>
<body>
<form method="POST" action="multi.php">
<input type="text" id="t1" name="t1" placeholder="enter numbershere" onKeyup="myFunc(this.value)">
<br>
<input type="hidden" id="hidden" name="hidden" >
<br>
<input type="submit" name="submit" value="submit" ">
</form>
<script>
var i=0;
var arr=new array(5);
function myFunc(val){
var x=document.getElementById("t1");
arr[i]=x.value;
i++;
x.value="";
}
</script>
</body>
</html

1 comment:

  1. How a steel toothpick works - TITIAN GAMING
    A large, high titanium alloy quality teeth are used to grind steel teeth in all titanium coating stainless steel titanium tv models. These teeth are commonly used to grind t fal titanium steel teeth. The teeth are easy to $10.99 · ‎Out of stock sunscreen with zinc oxide and titanium dioxide

    ReplyDelete