I am trying to add a href link to the words "privacy policy" in the text shown below.
I have tried adding the <a href="">privacy policy</a>
in the line and also tried "see our " + "<a href="">privacy policy</a>" + " for..."
And then tried making a variable containing the link and adding it in place of the code above: + "<a href="">privacy policy</a>" +
But neither would work, the line would just disappear.
jQuery(document).ready(function( $ ){
$( ".classname" ).after( "<p>Your details will be used to process the tickets. We take users’ privacy very seriously, see our privacy policy for full details on how we use your data.</p>" );
});
Is there a simple way to do this?
****Attempted Code****
jQuery(document).ready(function( $ ){
$( ".classname" ).after( "<p>Your details will be used to process the tickets. We take users’ privacy very seriously, see our <a href="'https://google.com'" target="'_blank'" rel="noopener noreferrer">privacy policy</a> for full details on how we use your data.</p>" );
});
jQuery(document).ready(function( $ ){
$( ".classname" ).after( "<p>Your details will be used to process the tickets. We take users’ privacy very seriously, see our <a href="https://google.com" target="_blank" rel="noopener noreferrer">privacy policy</a> for full details on how we use your data.</p>" );
});