开发者

jQuery method to a search box with a dropdown menu in it

It's easier to show you what I am trying to do with jQuery. I'm looking to make a menu within 开发者_运维百科an input field like Oodle has at the top of their site in their search bar: http://www.oodle.com/vehicle/ . Can someone point me in the right direction? Thanks!


This will get you started on the dropdown menu. The rest is probably styling.

bgiframe explained

actual bgiframe plugin


the menu is not within the input field,

  1. Remove all borders via css from the input field
  2. float the drop down trigger to the right
  3. wrap both elements in another div to give the illusion of an input field

http://jsbin.com/eyatu

the example above should help in the right direction...


They use an tag, and lots of javaScript.

I think the best way to know how they're doing it is using FireBug to inspect the page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜