After a few test with JSFiddle you code seems to work if wrapped into the $(document).ready(function() {})
.
$(document).ready(function() {
$("#SecondStep").validate({
rules: {
textbox: "required",
password: {
required: true,
minlength: 5
}
},
messages: {
textbox: "Please enter information into the textbox",
password: {
required: "Please enter a password",
minlength: "Your password must consist of at least 5 characters"
}
}
});
$('#test').click(function () {
var isValid = $("#SecondStep").valid();
alert(isValid);
});
});