Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,
I am trying to highlight word by wrapping the word in span tag, but in some cases my span tag get enter get in between and that make code not working, third last line of my code , in this case span automatically get enter key, please tell me how to solve this issue. Thanking you in advance
HTML
<span id="common" style="background-color: yellow; removed: hand;">
onmouseover='javascript:SaveMouseOVerWords(this,this.id)' 
 önmouseout='javascript:hide()' mytitle='1. park1, commons, common, green1 
--  a piece of open land for
 recreational use in an urban area; \"they went for a walk in the park\"  
\r\n\r\nthe noun common has 1 sense (first 1 from tagged 
texts)\r\n\r\noverview of adj common\r\n\r\n1. common2 --  belonging to or 
participated in by a community as a whole; public; \"for the common good\"; 
\"common lands are set aside for use by all members of a community\"  
\r\n2. common1 --  having  no special distinction or quality; widely known 
or commonly encountered; average or ordinary or usual; \"the common man\"; 
\"a common sailor\"; \"the common cold\"; \"a common nuisance\"; \"followed 
common procedure\"; \"it is common knowledge that she lives alone\"; \"the 
common housefly\"; \"a common brand of soap\"  \r\n3. common, mutual --  
common to or shared by two or more parties; \"a common friend\"; \"the 
mutual interests of management and labor\"  \r\n4. common, usual --  
commonly encountered; \"a common (or familiar) complaint\"; \"the usual 
greeting\"  \r\n5. common, vernacular, vulgar1 --  being or 
characteristic'>common</span> 
and obvious types of vandalism include insertion of false information, 
advertising language, highly
Posted
Updated 3-Jul-12 20:04pm
v2
Comments
Sandeep Mewara 4-Jul-12 2:02am    
It would help us if you share on how you are wrapping a word in span tag!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900