0

How to pull the value from the header and insert it into the button link.

<script>

$('document').ready(function(){
        $('#btn1').click(function(){
            let prop= 'https://examlp.com/PDFs/';
                let pr= $("#name").val(); //set the name value in the header css id
            window.location.href=prop+pr;
        
      return false;
    });
 });

</script>`
New contributor
Дмитрий Железов is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.