1.0.2 • Published 7 years ago
@ntdfx/jquery-hasattr v1.0.2
Simple jquery plugin to check whether an dom attribute exists or not.
window.$ = require('jquery');
require('@ntdfx/jquery-hasattr').install()
$(()=>{
console.log( $('body').hasAttr('id') );
});