javascript - How to create alerts only on visible fields in SharePoint using jquery? -


based on value drop down have hidden or shown text area in sharepoint. want create alert on text area fields visible. alert pops columns hidden too. 1 tell me how validate field?

function presaveaction(){     if ($(".ms-rtestate-write[id^='txt']")[0].innerhtml == "<p>​</p>") {         alert('please attach deviation documents');         return false;     }     return true; } 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -