Saturday, 15 March 2014

How can i add underline to a textString which comes/changes dynamically as am using xml-jquery -


I would like that the value of the XML properties that comes on the page using jazzery should be underlined on a specific character .

  $ (menu group) .append ('& lt; a href = "#" id ============== ================================================== =================== MenugroupName + "onclick =" SearchByDE (this.id) "title =" '+ + + "ModuleTool Note Note +" Access Key = "' + Menu Access + "Class =" hash menu "left_nav_menu" & gt; '+' & lt; p style = "padding-top: 6px;" & gt; '+ menuGroupName +' & lt; / p & gt; '+' & lt; / A & gt; ');    

CSS:

  .accesskey {text- Decoration: Outline; }   

JS:

  var accessIndex = menuGroupName.indexOf (menuAccessKey); MenuID = menuGroupName; If (accessIndex! == null) {menuGroupName = menuGroupName.substr (0, accessIndex-1) + '& lt; Span class = "accesskey" & gt; + Menu entry + '& lt; / Span & gt; ' + Menu group slogan SUVRT (Access Index + 1); } $ (Menu group) .append ('& lt; a href = "#" id = "' + menuID + '" onclick = "SearchByDE (this.id)" title = "' menu tooltip note + '" accesskey = "+ MenuAccessKey +" class = "hash menu" left_nav_menu "> gt; '+' & lt; p style =" padding-top: 6px; "& gt; 'menu group name' & lt; / p & gt; + '& Lt; / a & gt;');   

I still do not see any dependence on XML on this. Maybe the menu data comes from XML, but I do not know how important it is for formatting.

No comments:

Post a Comment