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 -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -