English 中文(简体)
是否存在着在 j基里乌伊植被中占有内部财产的违约办法?
原标题:Is there a default way to get hold of an internal property in jQueryUi widget?

利用现有的支离破碎的实验室点火。 它为活动结束和开放提供了反馈选择。 问题在于,在这种情况下,需要清除成为植被的一部分但与其无关的疾病。 为了做到这一点,需要获得这一节点。

例如,如果要实际修改植被法本身:

// ... other methods/properties

"open" : function(event){
    // ... the original logic

    // this is my animation
    $(this.list).slideUp( slow ); 

    // this is the orginal call to _trigger
    this._trigger( open , event, $this._uiHash());
},

// ... other methods/properties

然而,在活动范围中,手工艺品一附在>>上,即原产物,即植被。 我需要植被检查,或具体需要植被检查(list>/code>。

$( select#custom ).selectmenu({
     open : function(){
       // in this scope `this` is an HTMLSelectElement not the ui widget
     }
});

如何从植被中获取<代码><>>>>>> 财产?

EDIT:附注一载有我的最后解决办法。 然而,如果想回头去找人力部来获取这一要素,那么就仍然有兴趣听取关于推翻/利用现有植被或特定内部的最佳做法。

最佳回答

因此,最后看来,我错过这份名单,即根据假肢的名称和原 element元素进行id。 因此:

jQuery(function(){
    jQuery( select#custom ).selectmenu({
        width: 100, 
         style :  dropdown ,
        "open": function(e, data){
            var menu = jQuery( ul# +$(this).attr( id )+ -menu );
            menu.hide().slideDown( slow );
        },
        "close": function(e, data){
            var menu = $( ul# +jQuery(this).attr( id )+ -menu );
            menu.addClass( ui-selectmenu-open ).slideUp( slow , function(){
                menu.removeClass( ui-selectmenu-open );
            });

        },
        "change": function(){window.location = $(this).val();}
    });
});
问题回答

暂无回答




相关问题
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.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.