I saw JavaScript code which begins with with. That\'s a bit confusing. What does it do and how can it be used correctly?
with
with (sObj) return opti
In that with block you dont have to type:
sObj.options[selectedIndex].value
but you can just use:
options[selectedIndex].value