Form Submit and get name(ex: Product Name) Gmail










 


Example:- 1

/* Career Form */
var career_post_name;
$(document).ready(function(){
$(".btn-apply-career a").click(function(){
career_post_name = $(".career_post_title h1").text();
//console.log(career_post_name);
});
});
$( document ).on( 'elementor/popup/show' , function () { 
$('#form-field-post_name').val(career_post_name);
} );



/*********************************************************************/



Example:- 2 ( Top Image This Example )


/* Single Page Ask to quotation Form */
var product_name;
$(document).ready(function(){
$(".ask-to-que-btn a").click(function(){
product_name = $(".porduct_post_title h1").text();
//console.log(product_name);
});
});

$(document).on( 'elementor/popup/show' , function () { 
$('#form-field-product_name').val(product_name);
} );