Avatar of Zoniac
 asked on

How to get dynamically added elements in server side?

I have tried dynamically adding row of elments [input box,select control,input file] using Jquery addrow table version 1.02 with jquery-1.4.2.

Here i couldn't get the dynamically added elements [using javascript/Jquery ] in server side while i access my application in firefox/Safari/Chrome.But it's working fine in IE browser.

I'm using  apache-tomcat-6.0.10 web server.

--from JSP page--

<form name="newsheet" id="newsheet" method="POST" enctype="multipart/form-data" action="/servlet/TestServlet">

	<td><span class="DeleteButton"  id="delRow" >DEL</span></td>
	<td><input type="text" name="Attachmentname_0" id="Attachmentname_0" size="40"  maxlength="255" ></td>
	<td><select name="attachmentStatus_0" id="attachmentStatus_0" size="1"></select></td>
	<td><input TYPE="file" VALUE="Browse"  name="resumeFile_0" id="resumeFile_0" value="" maxlength="1000" size="40" tabIndex="33" class="controlStyle" /></td>
	<td><input type="hidden" class="delRow" value="Delete Row"/></td>

Open in new window

--script Code for adding dynamic elements

<script type="text/javascript">

Open in new window

I'm getting elements using multipart request in which elements are not able to reach in server side.

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Hi tagit,

I'm getting different ids for all dynamically added elements.

I have fixed this issue by aligning the table tag element in my jsp page.
Now i can get all the elements in server side for all the browsers.

Thanks for your suggestion.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck