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

Map

Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.
<div>
  Value:<p id="mapValue"></p>
  <input class="testMap" type="text" name="name" value="John"/>
  <input class="testMap" type="text" name="password" value="password"/>
  <input class="testMap" type="text" name="url" value="http://ejohn.org/"/>
<?php
echo
YsJQuery::newInstance()
  ->onKeyup()
  ->in('.testMap')
  ->execute(
    YsJQuery::emptyEvent()->in('#mapValue'),
    YsJQuery::append(
      new YsJQueryDynamic(
        YsJQuery::map('function(){return $(this).val();}')
          ->in('.testMap:input'),
        YsJQuery::get(),
        YsJQuery::join(', ')
      )
    )
  )
?>
</div>

Value:

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