
If you develop websites and work with JavaScript, but have never heard of jQuery before, then it is probably best that you start reading up on it right now. After all, as they like to put it themselves, jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript! Now we’ve seen that to retrieve the value of the checked radio button from a group of radio buttons using jQuery, we need to use the input[]:checked selector and then grab the val string as you would normally do. In practice, this process would look like this: Now sometimes you need to programmatically set the selected radio button in your JavaScript script, and thankfully jQuery once again comes to our rescue with its handy selectors. If we know the value of the radio button to be selected, we can use the same trick as the above sans the :checked segment, and then filter those results with our known value, before finally ending off the selector with the act of setting the checked property. In practice this would be set out like so: Clever.
Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under whichever martial arts dojo is closest at the time, and for the most part, simply enjoys life with his amazing wife and daughter.
Oh, and he draws ever now and then too.
This is a collection of things that he has managed to find the time to scribble down since 2007.
Looking for Something?
Jump to Category: