You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
j

jquery-attrs

Select attributes from jquery collections.

1.0.0
latest
67

Supply Chain Security

100

Vulnerability

66

Quality

76

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version published
Weekly downloads
7
250%
Maintainers
1
Weekly downloads
 
Created
Issues
1

$.fn.attrs()

Retrieves all the attributes with their associated values as object.

Example

<div id="elem" data-one="hello" data-two="world" something="else"></div>
$("#elem").attrs()
// -> { 'data-one': "hello", 'data-two': "world", 'something': "else" }

$("#elem").attrs(/^data\-/)
// -> { 'data-one': "hello", 'data-two': "world" }

FAQs

Package last updated on 08 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts