Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function myFunction(){
- $.messager.show({
- title:'My Title',
- msg:'The message content',
- showType:'fade',
- style:{
- right:'',
- bottom:''
- }
- });
- }
- $('#controlID').click(myFunction);
- $(document).ready(function(){
- $('#controlID').click(myFunction);
- });
- $(document).ready(function(){
- $('#controlID').click(function(){
- $.messager.show({
- title:'My Title',
- msg:'The message content',
- showType:'fade',
- style:{
- right:'',
- bottom:''
- }
- });
- });
- });
- $('.someclass').click(myFunction);
- if(a == 3)
- myFunction();
- myFunction();
- $(function(){
- $('#elementID').click(function(){
- myFuntion(); //this will call your function
- });
- });
- $(function(){
- $('#elementID').click( myFuntion );
- });
- if(something){
- myFunction(); //this will call your function
- }
- $(document).ready(function(){
- $('#YourControlID').click(function(){
- if(Check your condtion)
- {
- $.messager.show({
- title:'My Title',
- msg:'The message content',
- showType:'fade',
- style:{
- right:'',
- bottom:''
- }
- });
- }
- });
- });
- $(document).ready(function(){
- $('#YourControlID').click(function(){
- if(Check your condtion)
- {
- $.messager.show({
- title:'My Title',
- msg:'The message content',
- showType:'fade',
- style:{
- right:'',
- bottom:''
- }
- });
- }
- });
- });
- $('.button).bind('click', my_fn);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement