I have a page with 3 text fields and 1 dropdown menu.
I need a script that will print something like this on the screen (either as the text fields are completed or once the user presses a button):
Lorem ipsum <contents of text field 1>dolor sit <a href="<contents of drop down>">amet,</a> consectetur adipisicing elit, sed do eiusmod temper incididunt <content of text field 2> ut labore et dolors <content of text field 3>magna aliqua. Ut enum <img src="someimage.jpg" />ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
I need the output to be printed like the above so the user can copy/paste it into their html code so the html tags should remain in the output.
Any ideas how to do this (using jQuery is fine)?