Java script validation problem

Can any body tell me how to validate the following in Java script–

1)@IsMember(“1”;majdim_list)

where majdim_list is a text field

Subject: Java script validation problem

If i would have been in your place i would have created a computed field with formula @if(@IsMember(“1”;majdim_list);“GotIt”;“Sorry”).And would have simply checked the value of the new field using javascript document.forms[0].fieldname.value.If its “Gotit” then its present…or else…

SKS

Subject: Java script validation problem

Try this

var strvals = document.forms[0].majdim_list.value;

var arrvals = strvals.split(“,”);

for (i=0;i<arrvals.length;i++) {

if (arrvals[i] != "1") {

//Your code here

}

}

HTH

Sai