I need to replace ||| from all the input fields using jquery. But it is only replacing the first item. I need to use regex but I don't know how to add that to the string.
$(document).ready(function() {
$("#layerPaper").children("div").each(function() {
$val = $(this).children('input:text');
$val.val($val.val().replace('|||', '\"'));
});
});
Thanks.
|||? Or does it refer to the fact that in each<div>element you're only using the value of the first<input>element.?