I have <tr class="task"title="Edit">
How can I transfer title to css class like this
tr.task{
title="Edit";
}
I have <tr class="task"title="Edit">
How can I transfer title to css class like this
tr.task{
title="Edit";
}
You would need to use jQuery to change the title property.
$('.task').prop('title', 'your new title');
Or the title attribute:
$('.task').attr('title', 'your new title');
Read about the differences here: .prop() vs .attr()
It is beyond the capabilities of CSS to change title, but if you're looking to select tr.task
with the title "Edit", here's how you can do that using attribute selectors
tr.task[title="Edit"]