I have a test script in a submit form which gets the latest text value of a dropdown and puts it into another field dynamically using onmouseover. Virtual2 has the dropdown table.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
quinnygdn
I have a test script in a submit form which gets the latest text value of a dropdown and puts it into another field dynamically using onmouseover. Virtual2 has the dropdown table.
************
<script type="text/javascript" language="javascript">
document.getElementById('Submit').onmouseover = function()
{
var hour = (document.getElementById('cbParamVirtual2').value);
document.getElementById('InsertRecordLastallocagent').value = "Hello " + hour;
};
</script></body></html>
**************
When I try to use a similar script in an Update form -
I change to "Insert" "Edit"
ElementById to ElementsByName [0]
and I've set up a checkbox Virtual2 which triggers the input to Lastallocagent
but it gives me "Hello" + the first (default) entry in the dropdown table in Virtual1 rather than changing to the agent I select from the dropdown
*********
<script>
var hour = (document.getElementsByName('cbParamVirtual1')[0].value);
document.getElementById('cbParamVirtual2').onchange= function g_date()
{
document.getElementById('EditRecordLastallocagent').value = "hello" + hour;
};
</script>
***************
I've been at it all day - any help would be appreciated
Thanks
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.