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?


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

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.. :)

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

Jquery... :)

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

You can select span by id also like this.. :)[^]
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