how can i validate registration form using tag name
my code is:
$(function() {

var ele = $("input[type!='submit'], textarea, select");
ele.focus(function(){
$(this).parents('p').addClass('block');
});
ele.blur(function(){
$(this).parents('p').removeClass('block');
});



});