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

End

End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
<div>
<ul class="first">
   <li class="foo">list item 1</li>
   <li>list item 2</li>
   <li class="bar">list item 3</li>
</ul>
<ul class="second">
   <li class="foo">list item 1</li>
   <li>list item 2</li>
   <li class="bar">list item 3</li>
</ul>
<input type="button" id="btnRunEnd" value="Run" />
<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnRunEnd')
  ->execute(
    YsJQuery::find('.foo')->in('ul.first'),
    YsJQuery::css('background-color', 'red'),
    YsJQuery::end(),
    YsJQuery::find('.bar'),
    YsJQuery::css('background-color', 'green')
  )
?>
</div>

  • list item 1
  • list item 2
  • list item 3
  • list item 1
  • list item 2
  • list item 3

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