Category: JQuery

Javascript email validation

A simple javascript email validation. function emailRegx(text){ var pattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; return (pattern.test(text)) ? true : false; }

Read More

Datatables simple reference

Specify display┬ácolumn (default with sorting capability): “aoColumns” : [ { “sTitle” : “Agency Code”, “mData” : “agencyCode” }, { “sTitle” […]

Read More

Liferay autocomplete example

This tutorial I’ll show you how to create the autocomple with jQuery plugin with liferay portlet serve as backend code. […]

Read More