Improve this


Before reading this section, we suggest you reading Getting Started and Fundamentals to grasp the basics of Onsen UI. Don’t worry, it won’t take more than 5 minutes.


Using jQuery with Onsen UI is pretty simple.

  1. Download Onsen UI.
  2. Get jQuery.
  3. Load onsenui.js and 2 CSS files.
  4. Load jQuery.

Onsen UI components can be used as other native DOM element.

Example Installation

The following code illustrates how to use jQuery with Onsen UI, both loaded from the CDN.

<!DOCTYPE html>
  <link rel="stylesheet" href="">
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src=""></script>
      // Initialization code
      $('ons-button').on('click', function(e) {
        ons.notification.alert('Button is tapped!');
  <ons-button>Click me!</ons-button>