Click here to Skip to main content
15,945,119 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I select a specific span in jquery if span class identifier is only one?

code:http://jsfiddle.net/B8Kz6/1/[^]

note: the span with the text 'WHY THIS TEACHER IS SELECTED' is the only one that should append additional info.

thanks.
Posted
Comments
Kornfeld Eliyahu Peter 21-Jul-14 4:59am    
Why not to go jQuery site and read help!!! There are endless samples there...

1 solution

try this.. :)

HTML
<span id="spanTeacher" class="ControlTitle">WHY THIS TEACHER IS SELECTED</span>


Jquery... :)

JavaScript
$("#spanTeacher").append("<div>additional info</div>");


You can select span by id also like this.. :)

http://jsfiddle.net/NiravPrabtani/wjh8p/[^]
 
Share this answer
 

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