WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Tutorial : Radio button onchange event

Tutorials

>

Tutorial Radiobutton

>

Tutorial : Radio button onchange event


Radiobutton-03: Tutorial of the composant Radiobutton of the PHP FrameWork WebSite-PHP.

Tutorial : Radio button onchange event:



Go back to tutorial of the componant Radiobutton



Source code

Source code


File: /pages/tutorials/radiobutton/radiobutton-03.php

<?php
class Radiobutton03 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Radio button onchange event";
        
        
$this->render = new Form($this);
        
$radio = new RadioButtonGroup($this->render);
        
$radio->addRadioButton("Radio 1");
        
$radio->addRadioButton("Radio 2");
        
$radio->onChange("onChangeRadio");
        
$this->render->setContent($radio);
    }
    
    public function 
onChangeRadio($sender) {
        
alert("Radio value is ".$sender->getValue().".");
    }
}
?>


Go back to tutorial of the componant Radiobutton


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker