mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added .hasClass() (Simply just passes through to .is()).
This commit is contained in:
parent
6728e3cf74
commit
d2f82aba26
@ -305,6 +305,10 @@ jQuery.fn = jQuery.prototype = {
|
||||
return expr ? jQuery.multiFilter(expr,this).length > 0 : false;
|
||||
},
|
||||
|
||||
hasClass: function(expr) {
|
||||
return this.is("." + expr);
|
||||
},
|
||||
|
||||
val: function( val ) {
|
||||
if ( val == undefined ) {
|
||||
if ( this.length ) {
|
||||
|
Loading…
Reference in New Issue
Block a user