jQuery popup function not working

After testing the simple jQuery popup trying to implement in my wordpress site http://www.lawandahill.com/ , but popup is not working here. Removed the duplicate jQuery v1.9.1 after getting error "TypeError: $(…).dialog is not a function Error".

Now my site has jquery-1.7.1.min.js.

Read More

Placed this script in

<script>
  $(function() {
    $( "#dialog" ).dialog();
  });
</script>           

Someone please help . Thank you.

Related posts

Leave a Reply

2 comments

  1. Maybe there’s a conflict here between jQuery and WordPress, try to do:

    jQuery(document).ready(function($) {
        $("#dialog").dialog();
    })
    

    or wrap your code inside a closure:

    (function($){
        $("#dialog").dialog();
    })(jQuery);