Advertisement
bongzilla

Untitled

Mar 24th, 2021
1,418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.37 KB | None | 0 0
  1. <script>
  2.  
  3. $( document ).ready(function() {
  4.     $(".v-4__b-button").on("click", function() {
  5.         const name = $(this).parents(".w-slide").find(".package-price").text().trim()
  6.         const form = $("#price-contact-form").find("form")
  7.         form.append(`<input type="hidden" name="Форма ${name}" data-name="Форма ${name}" value="Форма ${name}" />`);
  8.     });
  9. })
  10.  
  11. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement