Developer's Guide :: Using RadioButtons

From RadPHP XE2 Documentation
Jump to: navigation, search

RadioButtons are components that allows you to show options to be selected by the user.

To use Javascript to change the checked status of a radiobutton, you can use this code:

 
function Button1JSClick($sender, $params)
{
?>
  //Add your javascript code here
  var radio=findObj("RadioButton2");
  radio.checked=!radio.checked;
  return(false);
<?php
}


This code conmutes the checked status of a RadioButton named RadioButton2

Personal tools