Here we will use Sourcerer to let us do cool jQuery stuff from within a Joomla! module. jQuery is a JavaScript library which greatly simplifies and speeds up some of the exciting things that can be done with JavaScript. Being able to summon this magic directly from within Joomla! and VirtueMart can be extremely useful.
We will simply load up jQuery. Once jQuery is loaded you can use anything from the entire jQuery library, right within Joomla!.
This is nice and easy so let's get started.
To install the Google jQuery library, we will create a custom module and load it directly. Navigate to Extensions | Module Manager and then click on the New button. At the end of this step you would see a screenshot like the following one:
Click on Custom HTML.
Now let's configure the module and try out some PHP. In the Title field enter
Sourcerer test
. And now click on the Select Position button.Choose debug.
Let's assign this module...