Adding javascript to admin view and user view I have a form with a text plain long description field. Added Javascript to limit the amount of characters allowed in the field. 

(function($){
    $("#edit-field-busines-0-value").attr('maxlength','500');
})(jQuery);


It works for the Authenticated users view, but not for the Admin users view? How can I have this work on the Admin view also?
Is it possible that this library is being pulled in by your public theme, but not by your admin theme? Authenticated users probably are maybe not seeing the edit from in the context of your admin theme, like admins are. If so, add the library to your admin theme too (you can create a sub-theme of Seven and add it there).