0

Dear All.
I want to show and hide a DIV tag in each row by clicking on check box.
my code is here:

$myCont="container_".$s;
$e .='<input onclick="showHide('.$myCont.');"  type="checkbox" />

and in another file I create DIV with none static id:

$e .='<div id="container_'.$s.'" style="display:none;">';

it is not work in showHide function when I click on check box.
please help me.

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by bahman2216
0

Hey guys!
It's so easy, but I do not know how can I send the div name with js function in this code: showHide('.$myCont.');
I do not know structure of the create multi name
please help me, it's very emergency.!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.