Using jQuery to Set the Default Option in a Select Box
Today at work I came across a situation where we needed to set the
default value of a <select>
box on a form, normally this would be a
perfectly simply operation. If it were a straight php form I would have
simply echoed an <option selected...></option>
. But we are working
with Joomla in a fully MVC context so all is not quite so simple. In
wades jQuery with a deserved look of achievement on its face…