English 中文(简体)
页: 1 藏匿处 Menu?
原标题:jQuery hide selectMenu?

I m using jQuery s selectMenu on a select tag like this.

$( #ddlReport ).selectmenu()

在某些情况下,我想掩盖它,我怎么说。

工作:

$( #ddlReport ).selectmenu().hide();

两者都没有

$( #ddlReport ).hide();

谁?

最佳回答
问题回答

数小时后,试图说明这一点。 最后,我用<条码>、div>、和仅显示/照搬四条。 当然,这远远没有说服力,但它使我不参加支吉支机动车。

采用更新的分类法(I m,与1.11.4版本合作),简单地使用“植被”特性:

$("#element").selectmenu( "widget" ).hide();
 $("#ddlReport").parent().hide();

works for me.

亲爱的Aramatus!

我只想说,对我来说,这项工作是:

$( #ddlReport ).next( .ui-selectmenu ).hide();

没有以超文本形式存在的电子电离层。

这就是解决办法!

$("#yourSelectId").parent().hide();

以零敲碎打或强迫使用纽顿语进行总结,显然更加复杂。





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签