Jquery / Javascript scripting to show a div after clicking a checkbox in an iframe

Completado Publicado hace 7 años Pagado a la entrega
Completado Pagado a la entrega

I have a html page which is located at [login to view URL] then i have an iframe inside that page which is located at [login to view URL] then inside that iframe I have another iframe with this code:

<form>

<input type="checkbox" name="c1" onclick="showMe('p1000015037')">Show Hide Checkbox

<script>

function showMe (box) {

var chboxs = [login to view URL]("c1");

var vis = "none";

for(var i=0;i<[login to view URL];i++) {

if(chboxs[i].checked){

vis = "block";

break;

}

}

[login to view URL](box).[login to view URL] = vis;

}

</script>

</form>

I have set the div id p1000015037 to display none but when i click on the checkbox it doesn't work.

I have a working example here - [login to view URL]

HTML HTML5 JavaScript jQuery / Prototype

Nº del proyecto: #10099086

Sobre el proyecto

5 propuestas Proyecto remoto Activo hace 7 años

Adjudicado a:

iklinac

Hi, You dont have an id p1000000684 anywhere on a page and your script tries to find it showMe('p1000000684') As you stated you want to search for p1000015037 and i can help you with that Yours sincerly, Iv Más

$25 AUD en 1 día
(10 comentarios)
3.8

5 freelancers están ofertando un promedio de $28 por este trabajo

venomdev

Hi, This looks like a javascript/html id mismatch. I will be able to start immediately if we go ahead. Thanks, Dan

$40 AUD en 1 día
(6 comentarios)
3.6