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

javascript functions and elements definition

Status
Not open for further replies.

tomvdduin

Programmer
Sep 29, 2002
155
NL
for php there is but where can I find the documentation for javascript, so I can find the proper method of an element?
 
I need it for the following:
I want to look into a dropdown box whether a value in a text box exists as a value in the dropdown box.
I tried the following:
Code:
for (i=0; i <= top.body.document.form_abonnement.ABO_A_PK.options.length;i++)
{
  if (top.body.document.form_abonnement.ABO_A_PK2.value == top.body.document.form_abonnement.ABO_A_PK.options[i].value)
    top.body.document.form_abonnement.ABO_A_PK.value = top.body.document.form_abonnement.ABO_A_PK2.value;
}

but that doesn't do the trick. I want to lookup how I can get the value of a specific option in a dropdrop down list, but perhaps you can help me too.

 
I found the sollution for the problem mentioned in the second post, it has to be
for (i=0; i < top.body.document.form_abonnement.ABO_A_PK.options.length;i++)
instead of
for (i=0; i <= top.body.document.form_abonnement.ABO_A_PK.options.length;i++)

But can someone please give me the location of the reference documentation?
 

"The" reference document?

There are more places than I care to mention that show different methods, events, properties, etc available to Javascript.

I always use MSDN - it's the best resource I've got, after my O'Reilly DHTML guide.

Hope this helps,
Dan
 
Could you post a link to the MSDN reference? I'd like to save it in my Favorites.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top