Tweet



 
A very easy to use, cross platform, jQuery based UI toolkit, that’s still small in size, has the features you need, and doesn’t get in your way of doing things! Put jQuery and jKit on all your pages and HTML becomes so much better. And the best thing? You really don’t have to be a programmer to create a trully amazing website! jKit has 99% of all the features you ever need. You don’t have to check out dozens of plugins, learn how to use them, only to find out they don’t work in a specific browser. And even if jKit doesn’t have that one feature you need right now, jKit is fully extendable with plugins and command replacements, all that and your API always stays the same.

Hi, stranger

jKit is growing almost daily, if you don’t find what you need, let us know with a post on the community forum or our social pages. Hey, who knows, maybe it’s already on our ToDo list.

Content Summary

jKit Button

If you like jKit, use and want to support the project, here’s a small button you can use to link to the jKit website.

Btw, if you did something really nice with jKit, send us a link to your work and if we like it, we would sure love to feature it.

Form command

Create an ajax submitted form.

Basic Usage (HTML)

data-jkit="[form:error=Your error message;success=Your success message]"

Advanced Init (JavaScript)

$('#myelement').jKit('form', { 'error': 'Your error message', 'success': 'Your success message' });

Options

OptionValuesDefaultDescription
validateonly“yes” or “no”noOnly validate the form? Don’t handle the submission.
errorHTMLThe error message to show for the whole form if it doesn’t validate
successHTMLThe success message to show for the whole form after submit
macroMacro nameThis optional macro will be applied to the element after success

Events

EventDescription
completeTriggered after the form is sucessfully submited
errorTriggered when an error occurs

Examples

Register field validation:

In this simple example we’re validating two form field you would normally use in a user register form:



Source:
<form method="post" action="?" data-jkit="[form:validateonly=true]">
	<p>
		<label for="miniusername">Username:</label><br />
		<input name="miniusername" id="miniusername" data-jkit="[validate:required=true;min=3;max=10;error=Please enter your username (3-10 characters)]">
	</p>
	<p>
		<label for="minipassword">Password:</label><br />
		<input name="minipassword" id="minipassword" type="password" data-jkit="[validate:required=true;strength=50;error=Please enter a secure password]">
	</p>
	<p>
		<input name="send" type="submit" value="Submit" />
	</p>
</form>

Replacements

There are currently no replacements for this command.

[ Learn more about replacements ]

 

Discussions

Do you have questions or do you want to suggest new features? Than head over to our new community:

[ jKit Community ]