jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Miscellaneous

Hide navigator Hide source code

Get

Retrieve the DOM elements matched by the jQuery object.
<div>
<input type="button" value="Get Value[2]" id="btnForGet" />
<ul id="lstGetItems">
  <li style="padding:0px">Content 1</li>
  <li style="padding:0px">Content 2</li>
  <li style="padding:0px">Content 3</li>
</ul>
<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnForGet')
  ->execute(
    sprintf('alert("Index 2 => " + %s)', 
             YsJQuery::get()
              ->key(1)
              ->in('#lstGetItems li')
              ->setAccesors('.innerHTML'))
  )
?>
</div>

  • Content 1
  • Content 2
  • Content 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