Proper use of using jquery regarding popups or hidden fields?

Proper use of using jquery regarding popups or hidden fields?

Hi,

What is the best way to use jquery for a popup or hidden data.

  1. Add a hidden div containing the data
  2. Use jquery to populate the div with the fields you need etc
I find number 1 to be the easiest but if you are creating a large site you have all this html that is not being used and I find it clutters up the code.

Thanks