>if i have the following select list: > >how can i add another option e.g. <option value='4'>steve</option> so that >it comes to first position without replacing <option value='1'>1</option> >using javascript i.e. See http://www.xs4all.nl/~ppk/js/index.html?options.html for the code you need. >based on the js code below: > > var oOption; > oOption = opener.document.Call.numbers.options; > oOption[oOption.length - 1].text = 'steve'; > oOption[oOption.length - 1].value = 4; > > You aren't creating a new Option object. See the page above for more details. -------------------------------------------------- ppk, freelance web developer Interaction, copywriting, JavaScript, integration http://www.xs4all.nl/~ppk/ Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/ Nieuw: Jaaroverzicht 2002 http://www.naarvoren.nl/artikel/jaaroverzicht_2002.html -------------------------------------------------- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus