I had an application that had a long list of checkboxes in a form. I wanted the ability to check all the checkboxes at once, or uncheck them at once. However, after googling for a solution, it seemed that all of them required me to label all my checkboxes with the same name. The nature of my application didn’t allow me to do that, so I had to find my own solution. The following Javascript code allows you to toggle …
Tag: function
I had a table’s worth of listings and had stored all the values in a multidimensional array in PHP. The problem was, I needed to sort the multidimensional array, but based on just one element. Here’s the easiest, fastest solution that I found from the array_multisort function page of PHP (thanks to zequez at gmail dot com!). Here’s his original solution taken from that page: $multiArray = Array( Array("id" => 1, "name" => "Defg"), Array("id" => 2, "name" => "Abcd"), …
CPanel’s a great software that’s been powering the web hosting industry for years. It has powerful functionality and a straightforward Graphical User Interface (GUI) that can allow a beginner to easily manage a web hosting account. However, some functionality can be tricky, such as the default forwarding function. If you create an email forwarder in CPanel that forwards email to test@anotherdomain.com, and create a POP email account of the same name – let’s call this test@testdomain.com – then you’ll receive …
I have trouble waking up, so I need an alarm clock that’s a little more effective than your average clock. So I did some sourcing around, saw a few promising ones, but finally settled on this…. The SCREAMING MEANIE. Just the name alone will strike fear into any sane person! The Screaming Meanie has two versions, the Screaming Meanie 110 and the Screaming Meanie 220. The 110 offers just a timer function, while the 220 offers the alarm clock functionality. …
Recent Comments