Skip to content
Related Articles

Related Articles

jQuery Mobile Toolbar create Event

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 13 Jan, 2022

jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will use the jQuery Mobile Toolbar create event. This event is triggered when the toolbar is created.


  • Initializing the toolbar create event.

    $( ".selector" ).toolbar({
     create: function(){}
  • Binding an event listener to the toolbarcreate event.

    $( ".selector" ).on( "toolbarcreate", function(){});


CDN Links: First, add jQuery Mobile scripts needed for your project.

<link rel=”stylesheet” href=”” />
<script src=””></script>
<script src=””></script>

Example: This example describes the jQuery Mobile Toolbar create an event.


<!doctype html>
<html lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href=
    <script src=
    <script src=
    <div data-role="page">
            <h1 style="color:green;">
            <h3>jQuery Mobile Toolbar create event</h3>
            <div id="headerID" data-role="header">
                <h1>This is a header toolbar</h1>
            <div id="log"></div>
        $(document).ready(function () {
                create: function () { }
            $("#headerID").on("toolbarcreate", function () { });
            $("#log").html('Toolbar has been created.');


jQuery Mobile Toolbar create Event


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!