Support » Fixing WordPress » How to use jQuery in wordpress

  • Resolved pinagby

    (@pinagby)


    I’m writing a pulgin .I want to use jQuery in it .I wrote some codes as flows:
    <script type=”text/javascript” src=”jQuery.js”></script>>
    <script type=”text/javascript” >
    $(document).ready(function(){
    alert(“ddd”);
    });
    </script>
    These codes were writen in the main page of my plugin ,and the file jQuery.js is put in the same folder with my plugin files,but these codes can’t work.
    How to solve the problem?

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to use jQuery in wordpress’ is closed to new replies.