Array Jquery in function -


how make array in function options run. declaration:

$(".object").myfunction({     run1: 'spell',     run2: true }); 

here function:

$.fn.myfunction= function() {     alert(run1); }; 

how alert run1 or run2 declaration ?

add object function receive

$.fn.myfunction= function(params) {     alert(params.run1); }; 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -