You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Foth, Oliver" <Ol...@gedas.de> on 2001/04/26 10:11:37 UTC

radio-button checked?

Hi folks,
how can we check if a radio-button in a <form> is checked or not?

Regards,

Olli

Re: radio-button checked?

Posted by Christoph Reck <Ch...@dlr.de>.
Look into the html specs...

Within velocity you can do (untested code):

#if( $req.getParameter("radioButtonName") == "on" )
  #set( $checked = true )
#else
  #set( $checked = false )
#end

:) Christoph


"Foth, Oliver" wrote:
> 
> Hi folks,
> how can we check if a radio-button in a <form> is checked or not?
> 
> Regards,
> 
> Olli