Archive for June, 2008

Selecting Options in Select Drop-Downs using jQuery

Tuesday, June 10th, 2008

Say we want to pre-fill out a form with data retrieved from an XML file.  Once we parse the XML, we need to update the form.  If you know the jQuery library, using the val() and attr() methods are trivial for most inputs.  What about select drop-downs?  There’s no easy way to add the “selected” [...]

Read the rest of this entry »