I have created some blocks which have different descriptions which should be printed,so i have created all the popup details separately and made the print button with "#" on load and on clicking on blocks i have tried to change the href value to the corresponding popupid.After this change in href value on clicking print popup is not showing. Following the codes i have used:
<div id ="9print">
<a class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-square vc_btn3-style-classic vc_btn3-color-grey" href="#" title="">PRINT</a>
</div>
onclick button 9
$("#9print a").prop("href", "#sg-popup-id-429");
the href value is changing to "#sg-popup-id-429", but after that when i click on "PRINT" popup is not showing , if we directly put the href value as "#sg-popup-id-429" its working fine
Can anyone please help me on this?