1

Select リストを作成し、selectmenu plugin次のようなjquery UI を適用しました。

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

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

今私の問題は、私が与えたタイトルselect listがマウスオーバーで表示されないことです。どうしたの ?

4

1 に答える 1

0

titleどうやら、selectmenu ウィジェットは元の要素の属性を公開していません。

これは、このウィジェットがメインの jQuery UI ツリーで使用可能になるまでに修正される可能性がありますが、それまでの間、この機能を自分で実装できます。試す:

var $test = $("#test");
$test.selectmenu().selectmenu("widget").attr("title", $test.attr("title"));
于 2012-05-18T09:33:38.413 に答える