javascript - message not shown when page is maximized.just shown when resized -


i have hidden message should shown when hit radiobox.but showing when resize page in smaller

here s message , javascript code:

<script type="text/javascript">          $(document).ready(function () {              $(".whathappened [type=radio]").change(function () {                  var selval = $('input:radio[name=losstype]:checked').val();                  if (selval == "tow_dispatchdisabledvehicle")                      $('#ersmessage').show();                  else                      $('#ersmessage').hide();              });           });      </script> 

and message:

 <div id="ersmessage" style="display:none">                         <div class="hidedesktop">                             <br/>                             <br/>                             error message ........                         <ul>                             <li>call 000000</li>                             <li>call 0000</li>                         </ul>                          </div>                     </div> 

i hope clear


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -