Accept No space in this textbox, please provide me the regular expression and where to add it : this is my password validation code.

other than space i wanted to accept everything in this textbox so help me out and this is my validation code.

    $("#clientPassWord").on("change", function () {
    var clientPassWord=$("#clientPassWord").val().length;
    var clientPassWord1=$("#clientPassWord").val();
    if(clientPassWord==null || clientPassWord<=0){
    $("#passmsg").show();
    $("#passmsg").html("This is a required field. You can’t leave it empty.");
    }   
    else{
    if(clientPassWord>=8 ) {
    $("#passmsg").hide();
    $("#joinbtn").removeAttr('disabled'); 
    if (clientPassWord1.toLowerCase().match("paperindex") || clientPassWord1.toUpperCase().match("PAPERINDEX") || clientPassWord1.toLowerCase().match("paperindexcom") || clientPassWord1.toUpperCase().match("PAPERINDEXCOM") ) {                    
    $("#passmsg").show();
    $("#passmsg").html("&quot;PaperIndex&quot; and variations of this word are not allowed here");
    }  
    else{
                $("#passmsg").hide();
             $("#joinbtn").removeAttr('disabled');
             }                           

    }
    else {
        $("#passmsg").show();
    $("#passmsg").html("Short passwords are easy to guess. Enter at least 8 characters.");
    $("#joinbtn").attr('disabled', 'disabled');
    
        }

        }        
    });