Skip to content
Kechushou edited this page May 19, 2015 · 2 revisions
define(function(){
quickforms.domElements = [];
quickforms.DomElement = function(dom) // Create one of these for every control
{
	var me = this;
	this.dom = dom;
	if(dom)
	{
		this.name = dom.attr("name");
		this.id = dom.attr("id");
		if(dom.attr("remember")=="")
		{
			dom.on('change',function(){
				setCookie(me.parent.id+me.id,$(this).val(),quickforms.rememberLength);
			})
		}
	}
	this.addedData = [];
	this.onChange = function(){};
	this.onBlur = function(){};
	quickforms.domElements.push(this);
	this.summary = function(){return this.name}
	
}
});
Clone this wiki locally