Sunday, September 20, 2009
Some simple jQuery examples, mainly for use in data input scenarios, hopefully with clear and concise HTML without superfluous extras, which I find really annoying when your trying to get your head around something..
A little background, I'm a VB6 and MS SQL 2000 developer, I have always struggled with the syntax of JavaScript, but have found that jQuery is a lot easier to work with, so here are some useful examples to start from, covering a lot of the stuff I use on a regular basis.
Did this by populating an elements internal text by specifying the ID, here we are displaying the current jQuery version, but this could be any text
$(document).ready(function() {
$('#ddid').text($().jquery);
});
Just to prove to myself that these examples are W3C complaint