Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var button = $(event.relatedTarget) // Button that triggered the modal
- var product_id = button.data('product') // Extract info from data-* attributes
- var company = button.data('company') // Extract info from data-* attributes
- var modal = $(this)
- $.get( "/products/enquiry_form/"+product_id, function( data ) {
- modal.find('.modal-title').text('New enquiry to ' + company)
- modal.find('.modal-data').html( data );
- });
- })
- $('.enquiry_form_submit').on('click', function(){
- $('.enquiry_form').submit();
- });
- });
- </script>
Add Comment
Please, Sign In to add comment