title: alert box in css inside jquery
body: <p>I want to show an error alert box inside the <code>if block in jquery</code> but error is coming. Can anybody help me here. I have found alert box from <a href="http://csscody.com/demo/jquery-demo/custom-alert-boxes-using-jquery/80/" rel="nofollow">this website</a> but in that case i have to click on Error Message Popup Alert to see the alert, but how can i add that Error Message Popup Alert alert inside my <code>jquery if part</code> so that without click that alert box will apear?</p>
  
  <pre><code> $("#textbox").keyup(function () {
      $.getJSON('check.jsp', {
          textboxname: this.value
      },function(data){
        if(data.isTrue){
            $("#textbox").val(''); //clear the text box and show that Error Message Popup Alert
        }
        else{
         //do something 
        }             
       });
  });
  </code></pre>