Given a simple string in which tags with attributes, the task is to get the attribute values and using the replace() function to multiply the number?

0 like 0 dislike
7 views
I can not understand how to access the attributes of the row.
by | 7 views

1 Answer

0 like 0 dislike
var elem = $('.elem').attr(");

where .attr(") - required attribute : 'id', 'title', 'class'..
by
110,608 questions
257,186 answers
0 comments
28,759 users