WordPress uses jQuery.noConflict()
by default. So try replacing $
with the jQuery
variable:
jQuery(document).ready(function() {
jQuery('.modal1').click(function() {
jQuery('.modal1').fadeOut('slow');
});
});
jQuery(document).ready(function() {
jQuery('.modal2').click(function() {
jQuery('.modal2').fadeOut('slow');
});
});