javascript - To Add Title to Anchor tag using Jquery from Resource file -
i want add title attribute anchor tag (from resource file) getting generated below mentioned code.
var hyperlinkopen = divtitlebar.children('a'); hyperlinkopen.removeclass("ui-dialog-titlebar-open ui-corner-all"); hyperlinkopen.addclass("ui-dialog-help-layer-titlebar-open");
title should title="open"
. how can add title anchor tag?
use jquery .attr() set attribute. yours divtitlebar.children('a').removeclass("ui-dialog-titlebar-open ui-corner-all").addclass("ui-dialog-help-layer-titlebar-open").attr('title','open');
Comments
Post a Comment