How to make a onclick iframe make a button visible? [closed] - javascript

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I cant figure out how todo this if i can get any help it would mean alot ove been stumped for the last hour looking everywhere for an awnser maybe im searching the wrong this i dont know. please help thanks!

Add this code to your page inside your iframe. The button will be hidden (see inline style css), when you click within the iframe the click event fires on the body element and displays the button. Uses jquery.
<body id="body">
<input id="Btn1" type="button" value="clickMe" style="display:none;">
</body>
$("#body").click(function(){
$("#Btn1").show();
});

Related

Wix Revision and Modification [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 days ago.
Improve this question
So i'm trying to rewrite and revise code for my friend to help make his website better, i've removed a lot of the redundant code, and revised a lot of it, as well as separated some of the CSS components into an actual CSS file.
After I tried adding an email service for his website, the "submit" button grew to an insane size, and won't let you type anything in it.
i've tried to reduce the size in CSS but it didnt work. attached is the screenshot of what i'm talking about; there should be a "name" and "email" input box there but there's only the HUGE submit button
This is the code i've tried implementing as of now:
``<form class="pUnTVX"
action="https://formspree.io/----"
method="POST"
Your email:
Your message:
Send
`
`
i expected it to just work as expected, i've used code like this before on trial markups, but i've never encountered this problem.

How to fix : Uncaught ReferenceError: module is not defined in Jquery [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
i'm trying to make a dynamic dependent dropdown selection , so i got this error in the console when i try to ckeck if the function work or not !
I'am using laravel , ajax , jquery in this project
Also , when i delete the script of the dynamic dropdown box , the error stay
Hope that you can help me
thank you
Usually this has to do with location of your
<script src="something"></script>
make sure you don't have same cdn and make your your link goes before script
something like
<link></link>
<script></script>
All the link should go before script sentence

On click effect (CSS, HTML, JAVASCRIPT) [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I don't know how to get "onclick" effect. I mean how to open new site by click menu. Below i attached example. Please tell what can i do.
https://bslthemes.com/ryan/demo/index-new-no-photo.htm
With addEventListener you have an univerdal method to respond on the click event. Instead of <div> you may use <button> or any other element, that's up to you.
<div id="whatever">Click me</div>
<script>
document.querySelector("#whatever").addEventListener("click", function() {
window.location.replace("https://stackoverflow.com/");
});
</script>

jQuery - change value of Div ID [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have this:
<div id="something">
content
</div>
And I need change something to somethingnew by using jQuery, so:
<div id="somethingnew">
content
</div>
How can I do it? I've tried function attr, but it doesn't work.
Thanks for advices.
This this:
$("#something").attr("id", "somethingnew");
Try this.
$("#something").attr("id","somethingnew");
$("#something").attr("id", "somethingnew"); should work just fine

Display and hide a div onclick [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
This is a demo of a sidebar, when i click on login it should display the login form, and when i click again it should hide it.
I don't know how to do that. Any hints?
I have also another problem, the bar hide part of the content how to solve that?
Thank you very much for any help.
Demo: http://jsfiddle.net/Iuppiter/uDxH6/61/
// Clicking here will show/hide the div
Login
<div id="login-form"> ... </div>
Without using Jquery maybe.
With only the code your provided you can do this.
http://jsfiddle.net/uDxH6/62/
$("#login-form").hide();
$("#other-bar-top a:nth-child(4)").click(function(e) {
$("#login-form").slideToggle();
e.preventDefault();
});
Make sure to include jQuery on your website.
Can you try this,
HTML:
Login
Jquery:
$(function(){
$("#login-form").hide();
$("#login").click(function(){
$("#login-form").toggle();
});
});

Categories

Resources