PDA

View Full Version : jQuery Menu: Dropdown, iPod Drilldown, and Flyout styles with ARIA Support and ThemeRoller Ready



trunghieuhf
23-07-2010, 01:09
Demo: http://www.filamentgroup.com/examples/menus/ipod.php
Download source: http://www.filamentgroup.com/examples/menus/fg-menu.zip
Khi xem code của nó thì mình thấy giá trị khi được click sẽ được hiển thị trong đoạn mã:
<p id="menuLog"><span id="menuSelection"></span></p>.
Và nó được hiển thị nhờ đoạn code:

this.chooseItem = function(item){
menu.kill();
// edit this for your own custom function/callback:
$('#menuSelection').text($(item).text());
location.href = $(item).attr('href');
};
Vậy mình muốn giá trị hiển thị trong <input /> thì phải làm thế nào? Mong các bạn giúp đỡ. Thanks!

trunghieuhf
28-07-2010, 23:54
Mọi người dùng thử rồi cho ý kiến nhé!