开发者

How to make on click an label combo box should appear

开发者 https://www.devze.com 2022-12-21 21:38 出处:网络
On click an label an combo box should appear... please check http://guruji.com/en/local.html on clicking near m开发者_开发百科ycity the label changes into combobox (dropdown list)..how to do it.You ca

On click an label an combo box should appear... please check http://guruji.com/en/local.html on clicking near m开发者_开发百科ycity the label changes into combobox (dropdown list)..how to do it.


You can use the jEditable plugin for jQuery to accomplish this.


simple. you need to have two span element and play with js, css

  <span style='display:block' id="click me">
    <a href="#" onclick="javascript:document.getElementbyId('dropdownspan').style.display=hidden" select me</span><span style='display:hidden' id="dropdownspan">
 <select name="test"><option value="1">one</option></select>
</span>


Clicking that link simply hides the original link and makes the "cities" dropdown visible. The dropdown is already on the page, you just can't see it.

0

精彩评论

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

关注公众号