Monthly Archives: August 2011

FIXED: Uniform JS empty SELECT bug

Uniform is a jQuery plugin that customizes the look of html form elements. Definition from the Uniform author:

Uniform masks your standard form controls with custom themed controls. It works in sync with your real form elements to ensure accessibility and compatibility.

Download it from

If you have an empty dropdown element (that is – a SELECT without OPTION), Uniform will result in an unhandled exception: “args[0] is null”

The fault is at line 173 of uniform.js. The offending line is:


To fix it, simply replace it with:

spanTag.html(selected.html() + '');