adding the values of dynamically created text box

adding the values of dynamically created text box

hello,
i have form named as form_student.
i have three fields as text box :
1) roll no
2) name
3) marks in each semester
first two fields are normal text box.
the third field has one text box(name=txtSemester) and a hyperlink(add semester) associated with it.
when a user clicks on the hyperlink(add semester), it will create a text box below the current text box of semester.
i have also a span(id="total") below the third text box which will show the total marks after adding each marks of semester.
i have created the text box (name=txtSemester) dynamically using jquery.
but i am unable to display the total marks after adding all the values of textbox (name=txtSemester).
please help me.
i am looking for it since last 2 days.
thanks and regards
Nishi kishore