Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Common jquery file with parameter passing

Global jquery validation



2:32 pm on Feb 27, 2013 (gmt 0)

I want to create a global .js file containing JQuery functions common to a set of tasks in any Asp .net web forms. For example, I want to create one file that contains functions related to Forms in my project. This file will contain JQuery functions to Validate Date, range validate, email validate, custom validate, alpha numeric checks, alphabhet lenght checking.
I also want the ability to pass control name to a function as parameter to reuse code.


3:16 am on Mar 1, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Include the global .js file the same way you include JQuery itself with a script tag, just following it should be OK.

You should be able to use your global functions just like the JQuery global ?

Featured Threads

Hot Threads This Week

Hot Threads This Month