I have a rather simple question for once. I have delete buttons that open modal pop ups to confirm or deny deletion. I would like these modal pop ups to fade in on click and fad
Use fadeIn() on the right selector('#'+id), this in the current context would be the global object.
fadeIn()
'#'+id
this
function showModal(id) { $('#'+id).fadeIn(); //$(this).fadeIn('slow'); } function hideModal(id) { $('#'+id).fadeOut(); }
DEMO