Switch to full style
JQuery Examples
Post a reply

Convert link and button to custom button with good style

Fri Jan 11, 2013 1:14 am

Convert your link element and normal button element to a custom button with good looking style using JQuery UI.

javascript code
<html>
<head>
<title>Good looking button</title>

<!--
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
Note you can download the JQuery package instead of using Google version. -->
<script src="jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script>
$(function() {
$( " a, input[type=submit],button" )
.button()
.click(function( event ) {
event.preventDefault();
});
});
</script>
</head>
<body>

<button>Normal Button</button>

<input type="submit" value="Submit Input" />

<a href="#">Your link</a>


</body>
</html>




Post a reply
  Related Posts  to : Convert link and button to custom button with good style
 Menu Style Button     -  
 adding a button with link in skymiles_red     -  
 inline style for link tag.     -  
 Change the default underline style of link     -  
 Gel Button     -  
 put image on button in C#     -  
 disable button     -  
 create a web 2.0 button     -  
 gel button in flash     -  
 Nav button size     -  

Topic Tags

JQuery UI