Move your in page jQuery to external javascripts
This is a sample html with inline javascripts. A very common question for newbie how to move the javascript to external file, below i show you 3 method i used to apply.
This is a sample html with inline javascripts. A very common question for newbie how to move the javascript to external file, below i show you 3 method i used to apply.
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; }
This tutorial is main for spring mvc 3, jquery and select2. Let’s get started. [googlefont font=”Enriqueta” fontsize=”30″].html[/googlefont] Don’t overlook the documentation, you need to change your input element to hidden text fields. <!DOCTYPE html> <html> <head> <link rel=”stylesheet” type=”text/css” href=”css/select2.css”/>
Specify display column (default with sorting capability): “aoColumns” : [ { “sTitle” : “Agency Code”, “mData” : “agencyCode” }, { “sTitle” : “Agency Name”, “mData” : “agencyName” } ], To disabled column sorting “aoColumns” : [ { “sTitle” : “Agency Code”,
This tutorial I’ll show you how to create the autocomple with jQuery plugin with liferay portlet serve as backend code. The example was using flexjson 1.9.1 to serialize the object as json output string and you can download the source code here.