How can I check the length of the string that is in the attribute? This shows the value undefined:
var action = $(obj).closest("form").attr('action');alert(action.lenght);
Your spelling is just a bit, .lenghtshould be .length:
.lenght
.length
var action = $(obj).closest("form").attr('action'); alert(action.length);
Always go to the api when no method is found before you make a message somewhere.
http://api.jquery.com
http://api.jquery.com/length/
Source: https://habr.com/ru/post/1778947/More articles:maven assembly: single assembly with errors: assembly descriptors not found - mavenWPF data template width - wpfSimple simulation of multiple dialogs - jqueryConstructor Chain with Intermediate Variables - constructorHow to detect update in django admin form validation module - djangoЯ пытаюсь использовать jquery ui (аккордеон) внутри панели AnythingSlider, и он не работает - кто-то смотрит? - jquery-uiIs there any exclusive stone for the ruby project? - ruby | fooobar.comStarting with AutoMapper - automapperF # how to adjust array length in deldaration - f #Настройте Gmail как SMTP в Xampp для отправки почты -Got Error.Why? - phpAll Articles