Toggle an element's attribute with jQuery code example Example: jquery toggle attribute disabled $('#el').prop('disabled', function(i, v) { return !v; });