Allmost works jQuery calling js Funtion()

Allmost works jQuery calling js Funtion()

I haven't the slightest idea what I am doing but I am reading "Learning jQuery1.3" .

<script src="jquery.js" type="text/javascript">
$("#t1").keyup(function(event){if(event.keyCode == 13){$("#b1").click();}});
</script>
<script language="javascript">
function changeIt()
{
var i = 1;
my_div.innerHTML = my_div.innerHTML +"<input type='text' name='mytext'+ i><br>"
}
</script>
What I am trying to do:
A user enters text in a text box.
When the user hits enter a new (empty) TextBox appears.
The ChangeIt() function does works from a button click.
I would really like to repeat this functioning (add new text box) for each new text box on data entry.

Currently I see the new text box appear but then IE dies with a connection error screen.

Thanks for the help.
Ralph
    • Topic Participants

    • rph