Use explicit jQuery(this) instead of $(this) to play nicely when using jquery and prototype on the same page when rendering inline scaffold via AJAX.