I have 52 members in my database. When displayed on the admin panel, each of them has a form associated with it, so I can take notes for each member.
Each member has an identifier, so I call each form on the page as follows: "frmRepNotes<%=MemberList("MemberID")%>"based on memberID from the database. This leads to something like frmRepNotes67453. Now I want to check the form before saving notes.
How can I use this number in JavaScript?
function validate(strid)
{
var ErrorFound = 0
if (document.'+strid+'.taNotes.value == '')
{
ErrorFound = ErrorFound + 1
}
if (ErrorFound == 0)
{
document.'+strid+'.submit();
}
}
How can I do that?
source
share