eurocomsrl Posted June 19, 2012 Report Share Posted June 19, 2012 If I have a submission form, to get data I use "InsertRecordxxxxx". If I have a report form, I use "EditRecordxxxxx". Now If I have a dropdown Box how could I get the selected content ? Thanks in advance Umberto Quote Link to comment Share on other sites More sharing options...
MayMusic Posted June 20, 2012 Report Share Posted June 20, 2012 You can get the value of a selected option in a dropdown using document.getElementById("ID OF THE DROPDOWN FIELD")[0].value; And to get the Id of a field use firebug http://getfirebug.com/ which is a Firefox addon to inspect the code. If you would like me to give you the ID of a field provide me the link :wink: :wink: :wink: :wink: :wink: Quote Link to comment Share on other sites More sharing options...
eurocomsrl Posted June 21, 2012 Author Report Share Posted June 21, 2012 Thanks a lot for your support. To simplify my question I made an help data page : http://www.euroservyce.it/help.php What I need is : Select the 1st field (Automatically you get the 2nd field) Question : What is the JS that fill the 3rd field with the content of the 2nd field when I click "Invia (submit)"? Regards Umberto Quote Link to comment Share on other sites More sharing options...
MayMusic Posted June 21, 2012 Report Share Posted June 21, 2012 Here you can use document.getElementsByName("InsertRecordRegione")[0].value to get the value of the cascading dropdown Quote Link to comment Share on other sites More sharing options...
eurocomsrl Posted June 22, 2012 Author Report Share Posted June 22, 2012 Thank you very much! It works!!! Best regards posting.php?mode=reply&f=3&t=13903#Umberto Quote Link to comment Share on other sites More sharing options...
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.