Closed diwms closed 10 years ago
What about this?
$(function () {
$('#button').on('click', function () {
//Show content with new selector!
$('#messages').show();
//This don't work. Why?
$('#messages').render('messages');
});
});
I use this great extension in one of projects. And it's work fine, if render template for a loaded DOM. But, how about situation when DOM is changed? For example, load part of page via ajax.
In my case, I want to render handlebars when user click. My code is:
Thanks for solution!