@ntdfx/jquery-hasattr

Simple jquery plugin to check whether an dom attribute exists or not.

Usage no npm install needed!

<script type="module">
  import ntdfxJqueryHasattr from 'https://cdn.skypack.dev/@ntdfx/jquery-hasattr';
</script>

README

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') );
});