Skip to content

samtsai/jQuery-MochiKit-tags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery MochiKit tags

This plugin is a quick and dirty implementation of MochiKit's simple tag creation aliases.


Quick usage

<div id="formContainer"></div>
<form id="myForm">
	<input type="text" name="firstName" placeholder="First Name"/>
	<input type="text" name="lastName" placeholder="Last Name"/>
</form>
<script type="text/javascript">
	$.FORM(
		{"id": "myForm"},
		$.INPUT({
			"type": "text",
			"name": "firstName",
			"placeholder": "First Name"
		}),
		$.INPUT({
			"type": "text",
			"name": "lastName",
			"placeholder": "Last Name"
		}),
		$.INPUT({
			"type": "submit",
			"value": "Submit"
		})
	).appendTo('#formContainer');
</script>

About

Quick and dirty MochiKit tag alias functions in jQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%