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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. prat824

    onclick not working in anchor tag to autofill an input box

    Aah.. I got it. changed last line in the function from document.forms.browse.box.value = value; to box.value = value; (this is practically my 2nd day with js - so please excuse the naivete) Thanks
  2. prat824

    onclick not working in anchor tag to autofill an input box

    oh - and I also realized my mistake in the1st line in the function var box = document.forms.browse.boxid; and changed it to var box = document.getElementById(boxid); Any help is appreciated Thanks
  3. prat824

    onclick not working in anchor tag to autofill an input box

    Thanks Vacunita, feherke I got it working for hardcoded "box2" in the function, but when I pass box id as a parameter to the function, it gives me an error ----- document.forms.browse.box is undefined document.forms.browse.box.value = value; ----- Here is my new simplified code.. <!DOCTYPE...
  4. prat824

    onclick not working in anchor tag to autofill an input box

    I am trying to autofill a box by clicking a link (with return false). The function to autofill works with button tag but not in anchor tag - instead of returning false, the click event transitions to the href. Here is the simplified code. Any help is appreciated.Thanks <!DOCTYPE html...

Part and Inventory Search

Back
Top