Skip to content

Instantly share code, notes, and snippets.

@bittersweetryan
Created September 16, 2011 13:22
Show Gist options
  • Save bittersweetryan/1222121 to your computer and use it in GitHub Desktop.
Save bittersweetryan/1222121 to your computer and use it in GitHub Desktop.
Injecting Dynamic ColdFusion Into Your JavaScript
var myData = {
property1 : "",
property2 : "",
property3 : "",
method1 : function(element){
element.html(this.property1);
},
changeSelect : function(){
$("#select1").change(function(){
this.method1($("#property1"));
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment