久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用可選擇的 Jquery UI 查找選定的元素

how to find selected elements with Jquery UI selectable(如何使用可選擇的 Jquery UI 查找選定的元素)
本文介紹了如何使用可選擇的 Jquery UI 查找選定的元素的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在尋找有關 jQuery 可選事件的事件和 ui 對象的信息:選擇"和開始"作為參數.我在文檔中找不到這個,循環遍歷屬性也無濟于事.

I am looking for info on the event and ui objects the jQuery selectable events: "selecting", and "start" take as parameters. I cannot find this in the documentation and looping through the properties is no help.

$('#content_td_account').selectable({
    filter: 'li:not(".non_draggable")',
    selecting: function(event, ui) { 
    }
});

具體來說,我想找出正在選擇的元素并檢查它們以查看它們的父元素是否相同.我認為這將在 ui 對象中的某個位置.

Specifically I want to find what elements are being selected and check them to see if their parent elements are the same or not. I assumed this would be in the ui object some where.

推薦答案

當一個元素被選中時,它會添加 ui-selected 類.

When an element is selected it gets the ui-selected class added.

所以你可以使用 $(".ui-selected")

這可能不完全有效,但我認為這個想法是這樣的:

This might not work exactly but I think the idea would be something like this:

$('#content_td_account').selectable({
  filter: 'li:not(".non_draggable")',
  selecting: function(event, ui) { 
    var p = $(this).parent();
    $(".ui-selected").each(obj, function() {
      if(obj.parent() == p) {
        // get rad
      }
    });
  }
});

這篇關于如何使用可選擇的 Jquery UI 查找選定的元素的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

jQuery/JavaScript Library for avatar creation?(用于創建頭像的 jQuery/JavaScript 庫?)
How to do following mask input problem?(如何做以下掩碼輸入問題?)
Issues Setting Value/Label Using DropKick Javascript(使用 DropKick Javascript 設置值/標簽的問題)
how to unit-test private methods in jquery plugins?(如何對 jquery 插件中的私有方法進行單元測試?)
stellar.js - configuring offsets / aligning elements for a vertical scrolling website?(stellar.js - 為垂直滾動網站配置偏移量/對齊元素?)
jQuery masked input plugin. select all content when textbox receives focus(jQuery 屏蔽輸入插件.當文本框獲得焦點時選擇所有內容)
主站蜘蛛池模板: 国产日韩视频 | 成年精品 | 亚洲一区久久 | 99视频免费在线观看 | 欧美性乱| 热99在线| 在线播放中文字幕 | 一级大片网站 | 不卡在线视频 | 日本aa毛片a级毛片免费观看 | 亚洲欧美日韩国产综合 | 一区二区高清不卡 | 久草网免费 | 少妇久久久久 | 欧美精产国品一二三区 | 欧美日韩综合视频 | 亚洲h视频 | 日韩福利 | 亚洲国产成人av好男人在线观看 | 中文字幕在线剧情 | 久久久人成影片一区二区三区 | 九九伊人sl水蜜桃色推荐 | 四虎av电影 | 一区二区三区欧美 | 日韩一区二区在线视频 | 国产精品一区二区欧美黑人喷潮水 | 欧美在线看片 | 亚洲精选久久 | 亚洲国产aⅴ成人精品无吗 综合国产在线 | 免费一区二区三区 | 精品久久久久久久久久久院品网 | 超碰日本 | 国产精品久久久久免费 | 免费一级毛片 | 午夜天堂精品久久久久 | 国产人免费人成免费视频 | 久久av网 | 成人一区二区三区 | 日韩国产欧美一区 | 韩日一区二区三区 | 精品欧美乱码久久久久久 |