Chris Loves .net
  • Home
  • Portfolio
  • Profile
  • Contact

Has Attribute Extension Method (jQuery)

A useful jQuery extension method for checking if an Html element has an attribute.

$.fn.hasAttr = function (name) {
    var undefined;
    return this.attr(name) !== undefined;
};

Usage is as follows:

$('#CompanyId').hasAttr('data-rank');

Featured Blogs

Class Finalizer

Use class finalizers to correctly clean up your object instances.

Newton UX Scale

The Newton UX Scale, not to be confused with Newton Scale devised by Isaac Newton in 1701

Choosing the right .net technology for desktop applications

Presented with the question: which is the right choice of .net technology for desktop development. I try to discern an answer.

WCF - Security Negotiation Exception

One way to overcome a WCF Security Negotiation Exception

What are REST and SOAP

REST and SOAP are used when describing web services, what are the differences?

Featured Blogs

Class Finalizer

Newton UX Scale

Choosing the right .net technology for desktop applications

WCF - Security Negotiation Exception

What are REST and SOAP

Social Links

  • LinkedIn
  • GitHub

Legal Links

  • Terms and Conditions
  • Copyright Notice
  • Privacy Policy