Appfuse's global.js has a good function that I want to use in my project.
It's the highlightFormElements() function.
Since the appfuse use prototype and script.aculo, but I want to use jQuery only, so I need to change the original global.js.
On http://15daysofjquery.com/quicker/4/, you can find how to use another approach to replace the window.onload():
$(document).ready(function(){
// Your code here...
});
so, I just simple use this way to like below:
jQuery(document).ready(function() {
highlightFormElements();
});
And that's all for my Step 1.
It's the highlightFormElements() function.
Since the appfuse use prototype and script.aculo, but I want to use jQuery only, so I need to change the original global.js.
Step 1:
since currently I only need the highlightFormElements() function, so it's very easy,On http://15daysofjquery.com/quicker/4/, you can find how to use another approach to replace the window.onload():






And that's all for my Step 1.