my html
<div id="sample-reminder">
<div id="reminder_0000">
<input type="text" name="val_0000" value="1">
</div>
</div>
my code
rigaHtml = $('#sample-reminder').clone(); // i have to work on a clone of dom
rigaHtml.find('input[name^=val_]').val(99);
rigaHtml.html().replace(/0000/g, 987654321);
last command not replace my placeholder '0000'. if i move replace() before find(), i cant' use find :-(