Skip to content Skip to sidebar Skip to footer

How To Change The Value Of Multiple Html Attribute?

i want to change this html element. cancel upload to Copy

Let me know if you need anything else..

Solution 2:

Solution 3:

Solution 4:

$('a[title="cancel upload"]').html('remove all').attr('title','remove all');

See here: jsfiddle

Solution 5:

You can use jQuery .html() and .attr() functions here:

$('.classname').html($(this).attr('title'));

This will set the innerHTML of the selected object to the string in the title attribute.

Post a Comment for "How To Change The Value Of Multiple Html Attribute?"