I have this code:
<textarea class="mapCode">
< area shape="rect" coords="" href="http://www.sitehere" target="_self">
</textarea>
How can I use jQuery to insert/update values into the coords attribute even if it's not empty?
Right now I'm using...
return $(this).text().replace("coords=\"\"", 'coords="'+selection.x1+','+selection.y1+','+selection.x2+','+selection.y2+'"');
But of course that only works one time since it's always looking for an empty coords=""
attribute.