Getting values of input text in a div using JQUERY

jaredfly

New Member
I am trying to get input values from a div using JQUERY. I \[code\]jQuery('#pastedimages input[type=text]').each(function (){ comments +=jQuery(this).val() + "$" +jQuery(this).attr('id')+":"; });\[/code\]and my div is like\[code\]<div id="pastedimages" style="display:none"><form id="finalsave" action="" method="post" enctype="multipart/form-data" onSubmit="return validateForm()"></form> <span> <img width="100" height="80" src="http://localhost/images/515aadc459823.png"> <label> <input id="515aadc459823" type="checkbox" name="slct[]" value="http://localhost/images/515aadc459823.png" checked="checked"> <a title="515aadc459823.png" href="http://localhost/images/515aadc459823.png" target="_blank">image 1</a> </label> <input id="515aadc459823" type="text" name="515aadc459823"><br> </span></form></div>\[/code\]It was working fine the other day but dont know why its not working now..Thanks in advance
 
Back
Top