JQuery UI Button Example

Jun 06, 2020



JQuery UI Button Example

Hi Guys,

In this example,I will learn you how to use jquery ui button default functionality.you can simply use jquery ui button click event.

jQueryUI provides button() method to transform the HTML element into themeable buttons, with automatic management of mouse movements on them, all managed transparently by jQuery UI.


<!doctype html>

<html lang="en">


<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>jQuery UI Button - Default functionality</title>

<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

<script src="https://code.jquery.com/jquery-1.12.4.js"></script>

<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

<style type="text/css">


padding:10px 10px 50px 10px;

margin:40px auto;




text-align: center;

border:2px solid #008B8B;





<h2>JQuery UI Button Example - NiceSnippets.com</h2>

<div class="main-class">

<div class="widget">

<h1>Widget Buttons</h1>


<input type="submit" value="Php">

<a href="#">Jquery</a>


<h1>CSS Buttons</h1>

<button class="ui-button ui-widget ui-corner-all">Sql</button>

<input class="ui-button ui-widget ui-corner-all" type="submit" value="Node Js">

<a class="ui-button ui-widget ui-corner-all" href="#">Bootstrap</a>



$( function() {

$( ".widget input[type=submit], .widget a, .widget button" ).button();

$( "button, input, a" ).click( function( event ) {







It will help you...

#Jqury UI