Skip to content

Instantly share code, notes, and snippets.

@wbashir
Created March 30, 2014 18:26
Show Gist options
  • Save wbashir/9877344 to your computer and use it in GitHub Desktop.
Save wbashir/9877344 to your computer and use it in GitHub Desktop.
Rendered Call Back - Meteor initializing JQuery plugins
<template name="t1">
<select id="selector"></select>
</template>
Tempalate['t1'].rendered = function(){
//attach to a DOM element with JQuery plugin
$('#selector').someJQueryPluginIn({}); //initializing
}
@asidiali
Copy link

asidiali commented Aug 4, 2015

Template

You have an extra "a" in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment