My problem maybe is basic, i just lack the skills. How can i turn the following code into javascript? :
<?php
for($i=1; $i<10; $i++){
echo "<input type='text' placeholder='Word' name='word$i' /><br />";
}
?>
I want to add an input everytime the user presses a button (already built) but i need every new input to have the following number than the one before. For instance:
input 1 (... name='word1') press again the button input 2 (... name='word2') press again the button input 3 (... name='word3')
Thanks! Happy 2013!