API Documentation

Forms
OnBlur: OnChange:
onfocus: onselect:
$petrojs('elem').onblur(function(){
	//code goes here
});
$petrojs('elem').onchange(function(){
	//code goes here
});
$petrojs('elem').onfocus(function(){
	//code goes here
});
$petrojs('elem').onselect(function(){
	//code goes here
});
$petrojs('elem').onreset(function(){
	//code goes here
});
$petrojs('#form').onsubmit(function(){
	//code goes here
});