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

RemoveData

<div>
<input type="button" id="btnGetData2" value="Get Data" />
<input type="button" id="btnRemoveData" value="Remove" />
<div id="blockForData2"></div>
<?php
echo
YsJQuery::newInstance()
  ->execute(
    YsJQuery::data()
      ->in('#blockForData2')
      ->value(array('foo' => 'bar'))
  );

echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnGetData2')
  ->execute(
    sprintf('alert(%s)', YsJQuery::data()->in('#blockForData2')
                                         ->key('foo') )
  );
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnRemoveData')
  ->execute(
    YsJQuery::removeData('foo')->in('#blockForData2'),
    'alert("data removed")'
  )
?>
</div>

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