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
Post a Comment