Alright this is working fine
- $(document).ready(
function () {
$('#p, #p div').each(
function () {
var Vrtitle = $(this).attr("title");
$(this).attr("title", Vrtitle + " important");
}
);
}
);
But when i use this it throws the error below
- $(document).ready(
function () {
$('#p, #p div').each(
function () {
var Vrtitle = $(this).attr("title").replace("A1","important");
$(this).attr("title", Vrtitle);
}
);
}
);
the error it gave
- Error: Unable to get value of the property 'replace': object is null or undefined