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

已完成 已发布的 Mar 31, 2016 货到付款
已完成 货到付款

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

项目ID: #10099086

关于项目

5个方案 远程项目 活跃的Mar 31, 2016

授予:

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 更多

$25 AUD 在1天内
(10条评论)
3.8

有5名威客正在参与此工作的竞标,均价$28/小时

venomdev

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

$40AUD 在1天里
(6条评论)
3.6