Skip to content

Instantly share code, notes, and snippets.

@khepin
Created February 23, 2011 01:37
Show Gist options
  • Save khepin/839821 to your computer and use it in GitHub Desktop.
Save khepin/839821 to your computer and use it in GitHub Desktop.
var lastFormId = 1;
function getBrandForm(){
$('a.get_ajax_form').click(function(){
// load the form for Brands. Call back to attach js to the form
$.get(url, function(data){
$('#brand_form_container').append(data.replace('%my_form_tag%', lastFormId);
lastFormId++;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment