I need urgent help. I need ONLY select ALL button for my code:
if($_POST['SmartPhone']==false and $_POST['Apple']==false)
{
$this->add(new error('<span style="color:red">Select your cell..!!</span>'));
$this->step1();
return;
}
if(isset($_POST['S4']))
$tech2=$_POST['S4'];
$form->add_checkbox('S4','S4',$tech2);
if(isset($_POST['iPhone 5']))
$tech3=$_POST['iPhone 5'];
$form->add_checkbox('iPhone_5','iPhone 5',$tech3);
if(isset($_POST['iPhone 5s']))
$tech1=$_POST['iPhone 5s'];
$form->add_checkbox('iPhone_5s','iPhone 5s',$tech1);
//In addition, i want to know how to put "Select All" button here
// in order to SELECT ALL MODELs: S4, iPhone 5, iPhone_5s
I am beginner at JavaScript.
Thanks in adv for your time.