Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery has attribute

var attr = $(this).attr('name');

// For some browsers, `attr` is undefined; for others,
// `attr` is false.  Check for both.
if (typeof attr !== 'undefined' && attr !== false) {
    // ...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #attribute
ADD COMMENT
Topic
Name
7+2 =