Im trying to select the span by using the (.class) selector but for one or another reason this is not working.
<div class="text-wrap">
<div class="text-list">
<div class="text-suggestion">
<span class="text-label">Lorem</span>
</div>
</div>
</div>
jQuery(document).ready(function() {
jQuery('.text-label').click(function(e){
alert('lol');
});
});
I can only select .text-wrapper the others are not working.. is this a jQuery program fault? I also have to say that im using the jQuery textext plugin.
UPDATE:
I forgot the quotes in my first post but this is not the problem. The code is also in a script tag otherwise it would not be possible to select the text-wrap div.
I still have the problem that everthing that is in the text suggestion div can't be triggered.
I am using the textext plugin from Textext
No comments:
Post a Comment