Custom JS Example

Adding Custom JavaScript

To add a custom JS you need add the tag <script...></script> to the jqmHead object [$jqmPhp->head()] in the jqmPhp instance. To facilitate the addition of JS you can use the class jqmScript as example:

$jqmPhp = new jqmPhp();
$jqmPhp->head()->add(
	new jqmScript('custom.js')
);