Search
 
SCRIPT & CODE EXAMPLE
 

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);
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: sort array based on another array 
Javascript :: tailwind modal react 
Javascript :: html javascript find data attribute 
Javascript :: how to convert array to object in lodash 
Javascript :: ip regex javascript 
Javascript :: change href with jquery 
Javascript :: event.target parent 
Javascript :: javascript set element width 
Javascript :: join two arrays angular 
Javascript :: get all from dir node 
Javascript :: how to master javascript 
Javascript :: angular access form control value 
Javascript :: load script defer 
Javascript :: how to sum two var in jquery 
Javascript :: javascript how to raise the error 
Javascript :: javascript synchronous wait 
Javascript :: Iterate with JavaScript For Loops 
Javascript :: devtools failed to load sourcemap when debugging react native 
Javascript :: How to convert data to utf-8 in node.js 
Javascript :: javascript get random items from array 
Javascript :: javascript rtsp player 
Javascript :: javascript url decode online 
Javascript :: use import in node 
Javascript :: a href javascript void 
Javascript :: angular event emitter 
Javascript :: express serve home page 
Javascript :: javascript:void 
Javascript :: download text file javascript 
Javascript :: bootstrap js, jQuery, popper cdn 
Javascript :: js array copy not reference 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =