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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -