Trigger a button click on a moon.Button or moon.IconButton with jQuery/Javascript directly

I know the click action can be triggered by assigning ontap a specific function like so:
{
kind: "moon.Button",name :"search_button",  
content : "Search" , ontap : "searchAction", classes: "menu-button-style"
}
.
.
.
searchAction : function(){ //do some stuff on click}


I've tried
$('#id_of_my_button').click();
$('#id_of_my_button').trigger('click');

and none of those seem to work.


Any ideas

Comments

Sign In or Register to comment.