Vote count:
0
NameTextBox is Dropdown with all names so once change of names and click on search then it gets details associated to the Name but by default 'None Selected' is displayed so once click on search this also works. How can i restrict 'None Selected' not to work once i click on search.
<select id="NameTextBox" name="NameTextBox" class="select100" onchange="fnChangeName();">
<option value=""><fmt:message key="label.select"/></option>
<c:forEach var="item" items="${MODEANDVIEW.model.codes}">
<c:set var="numb_Code" value='=${item.numb}'/>
<%
String numbCode = (String)pageContext.getAttribute("numb_Code");
String LoopVal=numbCode.replaceAll(" ","");
String compare = numb.replaceAll(" ","");
selected="";
if((LoopVal.substring(1)).equalsIgnoreCase(compare)){
selected="selected";
}
function fnChangeName(){
document.<%= renderResponse.getNamespace()%>emitform.addr.value=document.<%=
renderResponse.getNamespace()%>emitform.NameTextBox.options[document.<%=
renderResponse.getNamespace()%>remitform.NameTextBox.selectedIndex].value +
"\n";
var str=document.<%= renderResponse.getNamespace()%>emitform.addr.value;
var str2=document.<%= renderResponse.getNamespace()%>emitform.addr.value;
var str3=str.substring(0,str.indexOf(":"));
document.<%= renderResponse.getNamespace()%>emitform.addr1.value=str3;
document.<%= renderResponse.getNamespace()%>emitform.pvId.value=str3;
}
Any of your help is appreciated! Thanks a lot!
asked 19 secs ago
How to make 'None selected' not to work on change of function
Aucun commentaire:
Enregistrer un commentaire