469,323 Members | 1,210 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

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 3266
iam_clint
1,208 Expert 1GB
Hmm... Could you re explain your problem I didn't understand you very clearly.
Jun 7 '07 #2
gits
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 suresh191 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.