King Kong
King Kong

Reputation: 2915

selectmenu plugin on selectlist

I am using selectmenu() plugin on the select list

          <select id="main" size="1"><option ..</select>
          $("#main").selectmenu();

Now after applying this plugin, select list event 'onchangeis not working on theselect#main`.Can anybody please help me out?

Upvotes: 0

Views: 46

Answers (1)

Control Freak
Control Freak

Reputation: 13233

Try this:

  <select id="main" size="1"><option ..</select>
      $("#main").selectmenu({
        select: function(evt){ 
         // your code here on select

        }
      });

When using plug-in's like this, the original way of doing things in HTML will most likely be disabled and will have to be applied with-in the plug-in, so it acts properly with all it's other functionality. In addition to my comment though, you may want to read up on the documentation to get more familiar with using it.

Upvotes: 1

Related Questions