Link to home
Start Free TrialLog in
Avatar of babsjid
babsjid

asked on

Requesting value form a dynamic text box

Hello people,

Can anybody assist on how I can request the values thats is inputed into a dynamic textbox (That is, a text box that is repeating itself based on the number of rows returned in a recordset)

I hope to hear from you all very soon.

Thank you.
Avatar of hongjun
hongjun
Flag of Singapore image

>>how I can request the values
Client side? How do you name the dynamic textboxes? If it is something like thi

<form name="frmMain">
<%
do while not rs.eof
%>
    <input type="text" name="mytext"...>
<%
loop
%>
</form>


Since you are having more than 1 textboxes having the same name "mytext", you can actually use the below to get the values.


<script language="JavaScript">
alert(document.frmMain.mytext[0].value);  // get first textbox
alert(document.frmMain.mytext[1].value);  // get second textbox
</script>


hongjun
pls send yhe code of ur Creation od dynamic text box
ASKER CERTIFIED SOLUTION
Avatar of mella
mella

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gary
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Answer by mella

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
GaryC123
EE Cleanup Volunteer