I have 3 templates (static html pages).
Based on my selection one template will open in the form of popup. I have to add some content to that template when I want to show that template in the form of popup. Now I'm showing that templates with using window.open(url)
.
But I'm not able to add the content to that template while showing in the form of popup (in single word when I click on "preview" button in the form then popup will generate with predefined HTML template with some form data).
Basically I am looking for preview functionality using JavaScript or jQuery, so please provide code for the same.