Thanks for the reply.I have tried the same, giving the <script> in .js file. I want to get the list of countries given in the <option> tag through MVC.
Country:
<td><form:select path="countryId" id="cld" name="cld" items="${countryList}" onchange="statesSelected();">
<form

ption value="-1" label="--- Select ---"/></form:select></td>
State:
<td><form:select path="stateId" id="sId"><form

ption value="-1" label="--- Select ---"/> </form:select></td>
<td id="stateError" style="margin-left:120px;color:red;"></td>[/QUOTE]