I have a Jquery function like the following
function myFunction(){ $.messager.show({ title:\'My Title\', msg:\'
Just add click event by jquery in $(document).ready() like :
$(document).ready(function(){ $('#YourControlID').click(function(){ if(Check your condtion) { $.messager.show({ title:'My Title', msg:'The message content', showType:'fade', style:{ right:'', bottom:'' } }); } }); });