Jump to content

Load DropKick Plugin into theme


Recommended Posts

Hi expert's

 

I want to load Dropkick Plugin (a Jqurey Plugin for changing HTML Select elements look )( contains two js files ( jquery-1.11.0.min.js and jquery.dropkick-min.js) and one css dropkick.css ) and a little Javascript code in tpl files that you see Below :

  <script type="text/javascript" charset="utf-8">
    $(function () {
      $('.default').dropkick();

    });
  </script>

it will affect a Select item with Class Default.

 

What is the Appropriate way for loading this plug in into theme.i tried js load HTML Tag (<script src="./js/jquery.dropkick-min.js"></script>) but it doesn't work.

 

appreciate helping me about that.

 

Thank You

Edited by the_raven (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...