by shaunxcode · 15y ago · 0 comments
Tag.ul(
Tag.li('unclickable li tag')
.addClass('unclickable'),
Tag.li('test clickable li tag')
.addClass('clickable')
.click(function() {
alert('clicked on test')}))
I prefer this as it keeps my view code "in language" and makes it easy to apply any sort of jquery methods which I need to the different elements.No comments yet.