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
.
Placed this script in
<script>
$(function() {
$( "#dialog" ).dialog();
});
</script>
Someone please help . Thank you.
You have to download jQueryUI go here http://jqueryui.com/download/ you can select only the modules you need, in this case “Dialog”.
Maybe there’s a conflict here between
jQuery
andWordPress
, try to do:or wrap your code inside a closure: