Dear Friends
I have following situation.
I have created
JSP page which retrieve data from db. Depending on the rows it retrieves, the HTML page is generated.
For example, it query retrieve 2 rows, the HTML page will dynamically build two rows and display the values accordingly. Let say one the field is qty. As query retruns 2 rows, there will be qty1 and qty2 field in the html page.
I am trying to check for the null values when user presses the update button on the screen which calls
servlet. So i have writteen the javascript on the same jsp page.
I am doing following:
<< this gives me the total no of rows
var totalcount = document.whs.icount.value
for (var i =1, i <=totalcount) {
var qty = document.whs.qty +i.value;
}// end for loop
I am getting error when i am trying to join qty and i together. I converted i into
string and then tried to join howerver i still didn't succedd.
Can you please help me guys. I am really stuck with this. I have tried everything that i knew about
java script and running out of ideas.
thank you very much.
regards,
Rashmi Trivedi