Having difficulty selecting the Li tags after the container is cached.
Having difficulty selecting the Li tags after the container is cached.
Having difficulty selecting the Li tags after the container is cached.
var res = {
loader: $('<div />', { class: 'loader'}),
container: $('.container')
}
$('.container ul li').click(function(){
var clickval = $(this).text();
$('#eventn').val(clickval);
});
HTML output
<
div
class
="
container
"
>
<
ul
>
<
li
>
Mall @ Carnival
</
li
>
<
li
>
Carnival City
</
li
>
</
ul
>
</
div
>
Topic Participants
sfvdmerwe
jakecigar