A Classic Form Styling With Ease using css, javascript and jQuery. Remember it is a simple framework only for your forms. Have fun ;)
From CDNjs
https://cdnjs.cloudflare.com/ajax/libs/formjs/1.1.1/formjs.min.css
https://cdnjs.cloudflare.com/ajax/libs/formjs/1.1.1/formjs.min.js
Or download the last release
just add the css, js and jQuery files to your code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Project</title>
<link rel="stylesheet" type="text/css" href="/bath/to/formjs.min.css">
</head>
<body>
<!-- Content -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="/bath/to/formjs.min.css"></script>
</body>
</html>
Just add formjs
class to your input or spacify you input size
fromjs-sm
for small size
formjs
for medium size (normal-size)
formjs-lg
for large size
Except the button input you need to add 2 classes
fromjs fromjs-sm
for small size
fromjs formjs
for medium size (normal-size)
fromjs formjs-lg
for large size
If you didn't want to use jquery just use the formjs.css
and forget about formjs.js
file.
You can use this framework with or without jquery. But some components does require jquery so you shouldn't use these classes:
(1) .disable
class
(2) .disableonfocus
class
(3).formjs
Checkboxes
(4).formjs
Radios
(5).formjs
select [not multiple select]
formjs.js
will disable submit buttons when the page is loading to save forms from resubmition while the form is submited.
Example