using JMVC i have this issue: this line NOT work : this.element.append('hello');
here my controller:
steal('jquery/controller',
'jquery/dom/form_params',
'jquery/view/ejs',
'jquery/controller/view')
.then(
'./home.css',
function($){
$.Controller("Wg.Home",
{
defaults : {
defaultText : "Search for things here"
}
},
{
init : function(){
this.render();
},
render : function(){
$("body").addClass("home");
this.rendered = true;
this.element.html(this.view(this.options));
this.element.append("<div>Hi there</div>");
}, ...
i need to manipulate the EJS html after view render but i can't. what i miss? Thanks
MORE INFO:
I run my controller from router.js in this way:
this.home = new Wg.Home(this.container);
this.container is :
this.container = $('#page');
and my init.ejs is:
<div class="form-container">
<form action="" method="get" class="form-wrapper clearfix">
<input type='text' placeholder="<%=defaultText%>" name='q' id="q" class='blurred'/>
<button type="submit">Search</button>
</form>
</div>
I have no error.