I'm trying to use this plugin (jqtransform) to make some nicer looking checkboxes. However the checkboxes that I'm trying to apply it to are put on the page through an ajax get() request, where the html is pulled from a remote file.
//apply custom styles to checkboxes
$(document).ajaxComplete(function(){
console.log('ajax complete');
//find all form with class jqtransform and apply the plugin
$("form").jqTransform();
});
doesn't initialize these new checkboxes. Is there some other way to do this?
Try to call your plugin in "success" function for the $.get(), something like