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

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -