Submit your widget

JQuery NiceJForms

Created 13 years ago   Views 14397   downloads 2965    Author lexcat
JQuery NiceJForms
View DemoDownload
Share |

NiceJForms represents a solution to get form elements with beautiful shapes using custom design, which utilizes the lightweight JavaScript library jQuery, and is nothing more than a translation of Niceforms into jQuery library.
NicejForms is in fact a jQuery plugin to make forms look better. You can check the demo or download it. This is not a final release, I know that the code can be refactored or improved in many ways, but at least it's stable and ready to be used.

How to use NiceJForms

To use NiceJForms you need to:

  1. Obtain a copy of jQuery.
  2. Copy jquery.js and nicejforms.js to your website directory and link to them inside your HTML page. For example:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    <html xmlns="">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>Page title</title>
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="nicejforms.js"></script>

Add the css file needed for that theme.

<style type="text/css" media="screen">@import url("niceforms.css")</style>

Add class "niceform" to the form you wish to be customized. For example:

<form action="vars.php" method="POST" class="niceform">

Finally, call the javascript, at the bottom of the page:

<script type="text/javascript">

$(document).ready( function() { $; } );


Extra information: you can use NiceJForms as a standalone plugin for Interface
for that you will need to add interface.js file into you code, and also use "nicejforms-interface.js" instead of "nicejforms.js":

<script type="text/javascript" src="interface.js"></script>
<script type="text/javascript" src="nicejforms-interface.js"></script>

Example of options usage:

<script type="text/javascript">