I am trying to get the selected value from drop down from JSP. But I am not able to get the values. Can you please help me here. Below is the code snippet.

```
function showScreen()
{
    var frm_name = "jpFrm";
    var ele1 = document.getElementById("ele1");
    var ele2 = document.getElementById("ele2");
    alert("1st : " + ele1.value);
    alert("2nd : " + ele2.value);

    if(ele1.value != "" && ele2.value != "" )
    {
        alert("Form is going to submit");
        frm_name.submit();
        alert("Form Submited");
    }
}

```