I am crating a wordpress plugin. Here I need some from someone. I have create a select box with php array look like:
$scmslidetype = array(
"image_slide" => "Image Slide",
"youtube_slide" => "YouTube Slide",
"vimeo_slide" => "Vimeo Slide",
"text_slide" => "Text Slide");
and my select box code is:
<select name="scmslidetype" id="scmslidetype">';
foreach ($scmslidetype as $key=>$value){
$html .= "<option value='$key' ";
if(isset($postdata['scmslidetype']) && ($key==$postdata['scmslidetype']))
$html .= 'selected="selected"';
$html .= ">$value</option>";
}
$html .= '</select>
Select box is show fine. But I want when I select any value like Youtube Slide - My some table td is hide and some table td is show. How can I do this.