I was wondering whether a few things could be achieved using Javascript, and how I would go about implementing them into my project.

Firstly, is their an emulation of PHP's foreach() in Javascript? And how would I go about using it, with both normal and associative arrays (if it is different from PHP's method)?

Secondly, when working with <select> menus how would I go about manipulating the <option></option> tags within? As in, adding / removing / modifying the value and title within an <option> tag, where '<option value="value">title</option>'.

Thankyou for your assistance,