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