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

AndSelf

Add the previous set of elements on the stack to the current set.
<div>
  <div id="andSelfExample">
    <p style="margin:5px; padding:5px;">First Paragraph</p>
    <p style="margin:5px; padding:5px;">Second Paragraph</p>
    <input type="button" id="btnRunAndSelf" value="Run" />
  </div>
<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnRunAndSelf')
  ->execute(
    YsJQuery::find('p')->in('#andSelfExample'),
    YsJQuery::andSelf(),
    YsJQuery::addClass('border-example'),
    YsJQuery::find('p')->in('#andSelfExample'),
    YsJQuery::addClass('background-example')->in('#andSelfExample'),
    YsJQuery::find('p')->in('#test1'),
    YsJQuery::addClass('otra prueba'),
    YsJQuery::find('p')->in('#test2')
  )
?>
</div>

First Paragraph

Second Paragraph

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