help me to get value from one text input into array text input using javascript..
I found like this:
<script language="javascript">
function kirim()
{
document.form1.data2.value=document.form1.data1.value
}
</script>
<form action="" method="post" name="form1">
<input type="text" name="data1" onKeyUp="kirim()"/>
<br /><br>
<input type="text" name="data2">
</form>
But not work if like this:
<script language="javascript">
function kirim()
{
document.form1.data2.value=document.form1.data1.value
}
</script>
<form action="" method="post" name="form1">
<input type="text" name="data1" onKeyUp="kirim()"/>
<br /><br>
<? foreach ($countries as $data2)
{
<input type="text" name="$data2['location'][]" id="good">
}
Excellent ExampleMadhuchandra November 5, 2011 at 5:37 PM
The above example is short and sweet. It is an excellent example. Thanks a lot.
value from one text input into array text inputhady May 7, 2013 at 7:50 AM
help me to get value from one text input into array text input using javascript.. I found like this: <script language="javascript"> function kirim() { document.form1.data2.value=document.form1.data1.value } </script> <form action="" method="post" name="form1"> <input type="text" name="data1" onKeyUp="kirim()"/> <br /><br> <input type="text" name="data2"> </form> But not work if like this: <script language="javascript"> function kirim() { document.form1.data2.value=document.form1.data1.value } </script> <form action="" method="post" name="form1"> <input type="text" name="data1" onKeyUp="kirim()"/> <br /><br> <? foreach ($countries as $data2) { <input type="text" name="$data2['location'][]" id="good"> }
Post your Comment