Hi, I have a javascript function
function dist2(value1,value2) { var des = "description"; for(m=value1;m<value2;m++) { document.write(document.getElementById(des+m)+"<BR>"); } return false; } The id's of the text area are built as given below ================================== for($i=0;$i<5;$i++) { <textarea rows="3" cols="35" id="<?php echo 'description'.$i?>" name="<?php echo 'description'.$i?>"></textarea> } The dist2 javascript function is called as given below ====================================== <input type="submit" name="save" onClick="if(dist2(<?php echo $j;?>,<?php echo $i;?>) == false) return false; else return true;" value="Save/Add More"> I am getting the following reply [object HTML TextArea Element] null null null null --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---