4
I have a part of a blog that is manageable.
These are the TAGS. By default in the system, you inform the TAG in a specific field and it includes in the blog.
The code is like this:
<a href='blablabla' class='tags'>tagSYS, </a>
That is, the tagSYS
is the reserved word, what happens is that it always includes a comma, this is correct when it has more than one word.
But when there is only one, or when it is the last word, it is strange a "," where there is no continuation.
You can take it off with jQuery?
I thought I’d use
$( "tags" ).last()...
I don’t know the syntax to remove 'text'.
An example:
I believe that you should correct this generation, not add a comma to the last element
– Erlon Charles
@Erloncharles is exactly what I’m trying to do...
– Felipe Viero Goulart