title: Add custom validation message in jquery Ui-dialog plugin(without jquery validation plugin)
body: <p>I am using jquery ui dialog plugin.I want to add custom validation message (without using the jquery validation plugin).Currently the input box border changes to red when error occurs.Is it possible to add messages for validation?</p>
  
  <pre><code> $('.passwordpopup').dialog({
                                      modal:true,
                                      resizable: false,
                                      width:360,
                                      height:200,
                                      draggable:false,
                                      create: function(){
                                          $('.ui-dialog').wrap('&lt;div class="password-class" /&gt;');
  
                                      },
                                      buttons: {
                                          "Ok": function() 
                                          {
  
                                              var pass =    $('#password').val();
                                              $.ajax({
                                                  url: url+'ddm/passcheck',
                                                  type: "POST",
                                                  //dataType:"json",
                                                  data:{
                                                      password:pass,
                                                      user_id:3
  
  
                                                  },
                                                  success: function(data)
                                                  {
                                                      if(data == 1){
  
                                                          $('#password').removeClass( "ui-state-error" );
                                                          $('.passwordpopup').dialog("close");
                                                          $('#password').val('');
                                                          $('#text').fadeIn();
      }
      }
  });
  }}
  });
  </code></pre>