Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to use included jquery-ui in a custom page

Discussion in 'Troubleshooting & How-To's' started by trainedMonkey, Feb 8, 2017.

  1. trainedMonkey

    New Member

    Joined:
    Feb 5, 2017
    Messages:
    7
    Likes Received:
    0
    i want to make use of the jqueryi-ui widgets and effects included in wordpress, i'm trying to create a simple jquery-ui dialog box in a custom page but it's not working. in my template file, page-custom.php, i have the following code:

    Code:
    <div id='dialog' title='Dialog Box'>
    <p>this is the content of the dialog box</p>
    </div>
    <script type='text/javascript'>
      $('#dialog').dialog();
    </script>
    but this doesn't work. what am i doing wrong?
     
    #1
  2. WPhelp

    Administrator Staff Member

    Joined:
    Feb 24, 2013
    Messages:
    945
    Likes Received:
    25
  3. trainedMonkey

    New Member

    Joined:
    Feb 5, 2017
    Messages:
    7
    Likes Received:
    0
    #3

Share This Page

Web Hosting