Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

trigger send parameter



$('body').trigger('this_works', [{data: [1, 2, 3]}, 'something']);

$('body').on('this_works', function (event, json, string) {
  // parameter is stocked in json.data here.
  console.log(event, json, string);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #trigger #send #parameter
ADD COMMENT
Topic
Name
7+8 =