dom-manipulation

    5熱度

    2回答

    我試圖從另一個頁面div加載內容到另一個頁面div。 我已經有了: JQUERY: $('#news_date-1').load('test.php .news_date-1'); test.php的 <div class="news_date-1">20-11-2009</div> Destination.html <div id="news_date-1"></div> 結果我得到

    3熱度

    2回答

    我需要從他們的位置移動的每個H3的元素羣中的元素的多個實例的位置變化以下到一個新的位置。總結,裏面的包裝器的第一個孩子 一切我都試過將所有h3元素的實例移動到每個摘要中。我只需要將每個摘要中的原稿移動。 <div class="content-main"> <div class="summary" id="listing_summary_3547"> <div class="

    3熱度

    3回答

    我的圖表需要100個小格子,每次生成它們時,我都顯示爲相同的高度;數組中的最後一個值。 var valuesG = new Array(100); for (i = 0; i < valuesG.length; i++) { valuesG[i] = Math.floor(Math.random() * 101); $("#second").append("<div clas

    0熱度

    1回答

    以下的號碼DOM是重複類: <div class="inner"> <p> Text1 <span class="plus"> 25</span> <span class="minus">12</span> </p> </div> <div class="inner"> <p>

    3熱度

    4回答

    有什麼辦法去除元素,除了內部因素: <div class="gallery"> <a href="images/rep.png" title="rep"> <img src="http://example.com/uploads/rep.png" class="thumbnail" alt="rep" title="rep"> </a> </div> 到 <di

    2熱度

    2回答

    我工作的一些代碼在工作中的一個項目,並且也有點難倒的jQuery的細微差別。在下面的代碼中,它應該查看我的列表,然後迭代每個文本輸入元素,並使用與最後一個相同的通用名稱,但名稱中有更高的一個數字。相反,它所做的是將每個文本輸入元素的名稱迭代爲創建鏈接時存在的最後一個數字的一​​個數字。所以,它應該看起來像一個更復雜的版本,那麼這筆: <input name="industry1" /> <a hr

    1熱度

    5回答

    <p>I like turtles</p> <h3>Child brags about stuff</h3> <h4>The Herd</h4> 如何更改標籤的位置(順序)? 要這樣: <h3>Child brags about stuff</h3> <p>I like turtles</p> <h4>The Herd</h4> 是否有一個jQuery可能性?

    0熱度

    1回答

    我們如何從python中的Html字符串中減去div標籤? 例如, 我的HTML DOM就像 <html> <div id ="main"> <div id = "child1"> ....(some doms) </div> <div id="child2"> .......(some nested dom) </div> </d

    4熱度

    3回答

    我能夠編寫JavaScript旋轉木馬,並認爲這可能是更緊湊使用CSS過渡與nth-child選擇這樣的: img { transition: all 1s linear; /* or corresponding vendor prefixes */ position:absolute; } img:nth-child(1) { top: 0%; le

    1熱度

    2回答

    我現在正在創建一個jQuery插件,這將一個<select>變成一個漂亮的下拉菜單,我雖然有一點點問題,我可以得到選擇的選項頁面上,通過這樣做, var self = $(this); name = self.attr('name'); select_options = $(this).children(); // an array so that we can re