How do I take this string v that is in a loop and use jquery to add the value to the input id "MyInput"
Here is a simplified version of my code
var d='';
$.each(row,function(i,v){
//v = <div><p>gxsfsd</p><p>gxsfsd</p><input type="hidden" id="Myinput" /><p>gxsfsd</p><p>gxsfsd</p><p>gxsfsd</p></div>"
$(v).find("#MyInput").val("text set 1");
d+= v;
});