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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -