471,887 Members | 1,416 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

Call function o change combobox index

Hi All,

At first i will give thanks of all who have help me in the other thread. Know my combo works :).

Ok, you know the combo calls a javascript function in the onchage statement.

$combo = "<select name=\"ta\" id=\"ta\" class=\"imputbportada\" WIDTH=\"170\" STYLE=\"width: 170px\" onChange=\"cambia(document.formComprar.Q1,this.val ue)\">\n";

If i try to select a default option, but the onchange don't call the function.

How i can call the fucntion with the combo value in the load of the page or how i can change the index of the combo to call the function?
Jun 7 '07 #1
2 3311
1,208 Expert 1GB
Hmm... Could you re explain your problem I didn't understand you very clearly.
Jun 7 '07 #2
5,390 Expert Mod 4TB
hi ...

for such purposes you typically write an init-function ... that you call in onload of your document. at first you read the value (selected ones of drop-downs, values of textboxes etc.) ... and you call the onchange-functions with those initial values explicitliy in your init-function ...

1. get the value from your desired node
2. call the function explicitly ... (the one you call onchange normally)

... i hope i made myself clear ... and it helps you with an idea ...

kind regards ...
Jun 8 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Lucas Lemmens | last post: by
3 posts views Thread by chreo | last post: by
2 posts views Thread by AMDRIT | last post: by
1 post views Thread by fiaolle | last post: by
5 posts views Thread by =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post: by
reply views Thread by =?Utf-8?B?Y2xhcmE=?= | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.