Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery user function override

function helloWorld (argument) {
	alert(argument);
}
/*Now, if you want to override this function then*/
var origHelloWorld = window.helloWorld;
window.helloWorld = function(argument) {
    	//your code
    	origHelloWorld(argument); 	// after your code if you want to call original function 
}
Source by webkul.com #
 
PREVIOUS NEXT
Tagged: #jquery #user #function #override
ADD COMMENT
Topic
Name
4+6 =