Note that there are some explanatory texts on larger screens.

plurals
  1. POcombo box is getting vanished when an alert is coming
    primarykey
    data
    text
    <p>In my jsp page i have one text box and two combo box. An alert is coming in my jsp page when i am writing something in the textbox. Alert is coming as "username already exists" and after alert that textbox is autorefreshed <strong>but two combo boxes are getting vanished why</strong>? i could not find out what may be the reason any help please? I included the following in head section. Full source for alert is <a href="http://csscody.com/demo/jquery-demo/custom-alert-boxes-using-jquery/80/" rel="nofollow">here</a>.</p> <p><a href="http://csscody.com/demo/wp-content/demo/popup/js/jquery.easing.1.3.js" rel="nofollow">http://csscody.com/demo/wp-content/demo/popup/js/jquery.easing.1.3.js</a></p> <p><a href="http://csscody.com/demo/wp-content/demo/popup/js/alertbox.js" rel="nofollow">http://csscody.com/demo/wp-content/demo/popup/js/alertbox.js</a></p> <p><a href="http://csscody.com/demo/wp-content/demo/popup/js/style.css" rel="nofollow">http://csscody.com/demo/wp-content/demo/popup/js/style.css</a></p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;title&gt;JSP Page&lt;/title&gt; &lt;SCRIPT type="text/javascript" src="js/jquery.min.js"&gt;&lt;/SCRIPT&gt; &lt;SCRIPT type="text/javascript" src="js/jquery.easing.1.3.js"&gt;&lt;/SCRIPT&gt; &lt;SCRIPT type="text/javascript" src="js/alertbox.js"&gt;&lt;/SCRIPT&gt; &lt;LINK rel="stylesheet" type="text/css" media="all" href="js/style.css"&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $("#textbox").keyup(function () { $.getJSON('check.jsp', { textboxname: this.value },function(data){ if(data.isTrue){ $("#textbox").val(''); //clear the text box csscody.alert("username already exists");// here alert is coming } else{ } }); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;input type="text" id="textbox" name="textboxname" style="position: absolute; width: 250px; left: 110px; top: 40px;" /&gt; &lt;br/&gt;&lt;br/&gt; // The following two combo boxes are getting vanished after alert why &lt;select id="" name="" style="position: absolute; left: 600px; top: 40px; width: 250px;"&gt; &lt;option value=""&gt;&lt;/option&gt; &lt;option value="somedata"&gt;somedata&lt;/option&gt; &lt;/select&gt; &lt;br/&gt;&lt;br/&gt; &lt;select id="" &gt; &lt;option value="_"&gt;&lt;/option&gt; &lt;option value="somedata"&gt;somedata&lt;/option&gt; &lt;/select&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>check.jsp</p> <pre><code>JSONObject jsonObj= new JSONObject(); jsonObj.put("isTrue","true"); response.setContentType("application/json"); response.getWriter().write(jsonObj.toString()); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload