Get Number value After Click

[ad_1]

Hello @guglielmirent

The number 600 is not a URL parameter, database, JSON, or any other datasource. So, you can get this value via javascript directly.

Assuming the number field is <input type="number" name="my_number">, you can insert a script tag in the form with the following piece of code:

<script>
jQuery(document).on('click', '[href="#contact"]', function(){
jQuery('[name="my_number"]').val(jQuery(this).attr('data-price1'));
});
</script>

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer