IBM Support

Changing the version of jQuery in IBM Worklight

Product Documentation


Abstract

When you develop an application in Worklight Studio, the bundled version of jQuery might not be sufficient for development needs. This document provides instructions about how to use a different version of jQuery.

Content

jQuery is bundled as a library within IBM Worklight. By default, every new application includes a main HTML file, which contains the following code, that is required to use the embedded jQuery:
<script>window.$ = window.jQuery = WLJQ;</script>


To use a different version of the jQuery library, complete the following steps:

  1. Remove the <script>window.$ = window.jQuery = WLJQ;</script> code from your application HTML file.

  2. Add jQuery files to your project.

  3. Add the <script> tag that refers to the files, which you added in step 2.


The updated version of jQuery will be used for all environments.
[{"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Application Development","Platform":[{"code":"PF033","label":"Windows"}],"Version":"6.1","Edition":"Consumer;Enterprise","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
IBM Worklight

Software version:
6.1

Operating system(s):
Windows

Document number:
604187

Modified date:
19 August 2022

UID

swg27040418