jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Traversing

Hide navigator Hide source code

Find

Get the descendants of each element in the current set of matched elements, filtered by a selector.
<div>
  <div id="divFind">
    <ul class="level-1">
      <li class="item-i">I</li>
      <li class="item-ii">II
        <ul class="level-2">
          <li class="item-a">A</li>
          <li class="item-b">B
            <ul class="level-3">
              <li class="item-1">1</li>
              <li class="item-2">2</li>
              <li class="item-3">3</li>
            </ul>
          </li>
          <li class="item-c">C</li>
        </ul>
      </li>
      <li class="item-iii">III</li>
    </ul>
  </div>
  <input type="button" id="btnRunFind" value="Run" />
<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnRunFind')
  ->execute(
    YsJQuery::find('li')->in('#divFind > ul > li.item-ii'),
    YsJQuery::css('background-color', 'red')
  )
?>
</div>

  • I
  • II
    • A
    • B
      • 1
      • 2
      • 3
    • C
  • III

Comments

  • Support requests, bug reports, and off-topic comments will be deleted without warning.

blog comments powered by Disqus

About

Demos

jQueryUI

Plugins Support - New!

Components - New!

Project Developed by The YepSua Team
SourceForge.net