Tag Archives: selector

jQuery DataTables: How to destroy a DataTable instance

datatables-jquery-screenshot

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

Posted in jQuery | Tagged , , , | Leave a comment

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

Posted in jQuery | Tagged , , , , , | 2 Comments

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 , , , , | 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 , , , , , | Leave a comment