What, who, where am I?!?
Craig Lotter is a web developer based in Gordon's Bay, South Africa, who seems completely incapable of shaking off that pesky inner child within, the one that forces him to love all things animated or hand drawn.
The Rugged Rock of Craig contains snippets of his life, popular culture and all the important things like anime, manga, games and comic books. The CodeUnit of Craig on the other hand contains the more serious stuff like code snippets and tutorials, while the House of C chronicles his foray into the world of web comics.
For which it never seems he has enough time anyway.
CodeUnit Post Archive
Rugged Rock Studio
Tag Archives: selector
jQuery DataTables: How to destroy a DataTable instance

I really do love the awesome DataTable plugin which creates useful dynamic, with oodles of extra functionality, tables out of plain old vanilla HTML tables. Today’s quick tip however looks at how one destroys an already instantiated DataTable instance, say because you want to recreate it at a later stage in a completely different format but want to reuse the selector currently bound to the existing table.
Continue reading
jQuery: How to Locate the Selected Radio Button out of a Group of Radio Buttons

Radio buttons are pretty awesome when you need to ensure that a user has picked ONE of the given options presented to them, and using jQuery, it turns out to be a pretty simple affair to determine and manipulate exactly which radio button is currently selected from the group. Continue reading
jQuery: Bind Multiple Different Elements to a Function

The question for today is how to bind a single function to multiple different elements (in other words, elements with either different classes or IDs) in a single call.
Continue reading
Posted in Technology & Code, Tutorials
Tagged javascript, jQuery, multiple, select different elements, selector
Leave a comment
Getting the First Object Returned by a jQuery Selector

If for instance you have just used a jQuery selector to grab a whole lot of objects and now realize that in actual fact you only want to effect the first object that the selector returned to you, you can rest easy in the knowledge that jQuery as per usual has you covered. Continue reading
Posted in Technology & Code, Tutorials
Tagged :first, eq(0), first element, jQuery, selector, tutorial
Leave a comment






