Version compl�te: jsB@nk » Form » Checkbox » vérifier les champs vides
URL: https://www.javascriptbank.com/check-the-empty-fields.html
Cliquez sur la radio bouton de la gauche pour vérifier les champs vides de la rangée.
Version compl�te: jsB@nk » Form » Checkbox » vérifier les champs vides
URL: https://www.javascriptbank.com/check-the-empty-fields.html
<SCRIPT>function ChkRow(n){mt=0;CallOut="Empty fields !\n"for(i=1;i<6;i++){eval("if(document.forms[0].Row"+n+"Col"+i+".value==''){mt++;CallOut+='section '+"+i+"+', '}")}(mt>0)?alert(CallOut):alert("All filled!")eval("document.forms[0].Row"+n+".checked=false")}</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<FORM><TABLE border=2> <TBODY> <TR> <TD><INPUT onclick=ChkRow(1) type=radio name=Row1> <TD><INPUT size=10 value=Hello name=Row1Col1> <TD><INPUT size=10 name=Row1Col2> <TD><INPUT size=10 value=Hello name=Row1Col3> <TD><INPUT size=10 name=Row1Col4> <TD><INPUT size=10 name=Row1Col5> <TR> <TD><INPUT onclick=ChkRow(2) type=radio name=Row2> <TD><INPUT size=10 name=Row2Col1> <TD><INPUT size=10 value=Hello name=Row2Col2> <TD><INPUT size=10 name=Row2Col3> <TD><INPUT size=10 value=Hello name=Row2Col4> <TD><INPUT size=10 name=Row2Col5> <TR> <TD><INPUT onclick=ChkRow(3) type=radio name=Row3> <TD><INPUT size=10 value=Hello name=Row3Col1> <TD><INPUT size=10 value=Hello name=Row3Col2> <TD><INPUT size=10 value=Hello name=Row3Col3> <TD><INPUT size=10 value=Hello name=Row3Col4> <TD><INPUT size=10 value=Hello name=Row3Col5> <TR> <TD><INPUT onclick=ChkRow(4) type=radio name=Row4> <TD><INPUT size=10 name=Row4Col1> <TD><INPUT size=10 name=Row4Col2> <TD><INPUT size=10 value=Hello name=Row4Col3> <TD><INPUT size=10 name=Row4Col4> <TD><INPUT size=10 name=Row4Col5> </TR></TBODY></TABLE></FORM><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->