jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Events

Hide navigator Hide source code

These methods are used to register behaviors to take effect when the user interacts with the browser, and to further manipulate those registered behaviors.

Delegate

Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements.
<div>
<div id="divDelegate">
  <p style="background-color: red;"> Click me!</p>
</div>
<?php
echo
YsJQuery::delegate()
  ->in('#divDelegate')
  ->selector('p')
  ->eventType('click')
  ->handler(
    '$(this).after("<p style=\"background-color: yellow;\">Test!</p>");'
  )
  ->execute() ?>
</div>

Click me!

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