Certified repairs centre

After sales Support

DJI Phantom 4 Pro Drone V1 (Pre-Owned) -6 Months Warranty

Get It Now, Pay Later

Buy Now
Add to Quote
Product Description
setproductURl(); setproductName();

function setproductURl(){ //finds the url of current page var Product_url = window.location.href; //finds all elements on form for the url const elements = document.querySelectorAll('[id*="et_pb_contact_inquiry_url_"]'); elements.forEach(element => { element.value = Product_url; }); }

function setproductName(){ //find the product name of current page var Product_title = document.querySelector(".et_pb_wc_title .et_pb_module_inner h1").innerText ; //finds all elements on form for the product const elements = document.querySelectorAll('[id*="et_pb_contact_inquiry_item_"]'); elements.forEach(element => { element.value = Product_title; }); }