Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by johrik

  1. johrik

    Setting Value of Drop Down in Form not working

    Yep thats it!! Thanks for youre help I did the following: document.forms['predealform'].elements['sdMonth'].selectedIndex = (start_date_month-1) start_date_month is the variable thats being passed in as a number and it sets the correct date, Thanks,
  2. johrik

    Setting Value of Drop Down in Form not working

    Sorry got that slightly wrong, it doesnt work in Firefox just it defaults to the first value in the dropdown... In IE it doesnt default just goes blank. I want to set it to the value "start_date_month" which def has a value (as the alert box proves this) but it doesnt seem to work,
  3. johrik

    Setting Value of Drop Down in Form not working

    Hi, Yes its def called sdMonth as below: <input type="text" name="sdDay" size="1" maxlength="2" > <select name="sdMonth" size="1"> <option value="01">Jan</option> <option value=" 02">Feb</option> </select>...
  4. johrik

    Setting Value of Drop Down in Form not working

    Hi all, I have 3 fields in a form of which 2 are being populated fine with the following syntax: document.predealform.sdDay.value = sd_start_date; document.predealform.sdMonth.value = start_date_month; document.predealform.sdYear.value = start_date_year; The var on the right hand side all...

Part and Inventory Search

Back
Top