Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript" charset="utf-8">
- jQuery(document).ready(function($) {
- $('a[rel*=facebox]').facebox();
- $('.new_project form').ajaxForm({
- target: '.new_project #form_response',
- success: function() { }
- });
- });
- </script>
- $().facebox() creates the new DOM element with the form. I need $().ajaxForm() to recognize it using the jQuery selector .new_project form. How would I use $().live() to do what I need?
- Like this?
- <script type="text/javascript" charset="utf-8">
- jQuery(document).ready(function($) {
- $('a[rel*=facebox]').facebox();
- $('a[rel*=facebox]').live('click', function() {
- $('.new_project form').ajaxForm({
- target: '.new_project #form_response',
- success: function() { }
- });
- });
- });
- </script>
Add Comment
Please, Sign In to add comment