input
Search A Table With JavaScript
Tue, 03/10/2009 - 11:33 | by philipnorton42Using server side scripts to search for things can be as complex or as simple as the situation requires. However, if you have a table of results and you just want to enable a simple JavaScript search on that table then this might be the script for you.
To search a table using JavaScript you need to split the table into bits, this can be done using the getElementsByTagName() function, which takes the name of the element that you want to capture. So to grab all of the rows of a table as an array you need to pass the value of tr.
Highlight The Contents Of A Textarea With JavaScript
Wed, 08/27/2008 - 08:47 | by philipnorton42If you want to give your users a little snippet of code it is nice to give them the option of selecting the entire block of code without having to highlight the text manually. This can be done with a simple JavaScript button.
Take the following form:
Check Or Uncheck All Items In A Checklist With JavaScript
Tue, 05/06/2008 - 08:31 | by philipnorton42If you have lots of check boxes in a row a handy little usability trick is to allow a user to click on a button and check all of the checkboxes at once. The following function will either check or uncheck all of the check boxes in your form.