I am having problems with a piece of code that I use to create a widget. see below:
$(".number-plate").html(function(i, h) {
return h.replace(/(ANY|[A-Za-z0-9])/g, '<img src="plate-widget/$1.gif" />');
});
The problem is that this replaces the whole element, not just the content!
Is there any way to customize the content .number-plateONLY?
Any help is much appreciated, thanks
Nasir source
share