troubleshooting Question

Display value of dropdown list using javascript.

Avatar of SmashAndGrab
SmashAndGrab asked on
16 Comments1 Solution213 ViewsLast Modified:

I am having a minor issue with displaying some form information using javascript.

The following code simply ad's and removes rows from a table using javascript. within the row is TEXT.
I would like to append the text with the value of what is within other controls on the form but it does not work.
here's my code:

function toggleMessage(MessId, Action)
            var MessTxt = "";
            var m8 = "Delivery of floor pack to included: " + document.getElementById('cbDelPoscod');

 switch(MessId) {
                case "m8":
                    MessTxt = m8;
            if (Action == ('a')) {

                document.getElementById("ResultsTableTxt").insertRow(-1).innerHTML = '<tr id=' + MessId + '><td>' + MessTxt + '</td></tr>';
            else {

I just want

Thanks for your time.
Join our community to see this answer!
Unlock 1 Answer and 16 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros