joomla_antivirus_logo

Autor Tema: Koko provjeriti checkbox?  (Posjeta: 1513 )

0 Članova i 1 Gost pregledava ovu temu.

erbi

  • Ozbiljan forumaš
  • ****
  • Postova: 381
  • Karma: 1
    • Profil
    • Radio Tomi
Koko provjeriti checkbox?
« : 16. Kolovoz 2013, 11:38 »
Kako da provjerim checkbox? Ovo radi:

case "EMAIL":
if (object.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1) {return false;}
return true;

<tr class="tablchet" >
<td align=right width=200px class="tablchet"><?php echo JText::_('Company_name');?></td>
<td class="tablchet"><input name="email"   maxlength="90" type=text class="form"  value="" /></td>
</tr>
al ovo nikako neče:
case "ddv":
if (object.checked) {return true;}
return false;

</tr>
<tr class="tablchet" >
<td align=right width=200px class="tablchet"><?php echo JText::_('Company_davcna');?></td>
<td class="tablchet"><input name="ddv"   maxlength="90" type=text class="form"  value="" /></td>
</tr>


 

joomla_antivirus_logo
anything