简体   繁体   中英

select list title is not showing on mouse hover

I created a Select list and applied jquery UI selectmenu plugin like:

  <select id="test" title="This is not showing on mouse hover">
  <option..>
  </option>..
  </select>

  $("#test").selectmenu();

Now my problem is that the title which i gave to my select list is not showing on mousehover. Whats the problem ?

Apparently, the selectmenu widget does not expose the title attribute of the original element.

This may be fixed by the time this widget becomes available in the main jQuery UI tree, but in the meantime you can implement this feature yourself. Try:

var $test = $("#test");
$test.selectmenu().selectmenu("widget").attr("title", $test.attr("title"));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM