hi .. i tried to getting the values from combo box and passed to next
jsp file.. i got the result when i'm selecting the item which in one
word.. for example i'm getting "Agent" value form combo.. but if it is "Whole Sale" i'm getting the word "whole" only in the next page.. i attached the coding
function validation()
{
var cbo=document.getElementById("cid");
var val=cbo.options[cbo.selectedIndex].value;
document.custdetails.hidctype.value=val;
document.custdetails.method="post";
document.custdetails.action="custtype.jsp";
document.custdetails.submit();
}
<select name="ctype" id="cid" style="width:100px" >
<OPTION>--SELECT-- </OPTION>
<%try
{
connect =new databaseConnectivity.databaseConnection();
ResultSet rs=null;
String qry="select customertype from custtype order by customertype";
rs=connect.selectQuery(qry);
while(rs.next())
{
String cust=rs.getString(1);
%>
<option value=<%=cust%>><%=cust%></option>
<%
}
}
catch(Exception e)
{}
%>
</select>