How to get value from outside on HTML?What are valid values for the id attribute in HTML?How to horizontally center a <div>?Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?How to check whether a checkbox is checked in jQuery?HTML 5: Is it <br>, <br/>, or <br />?How to create an HTML button that acts like a link?How can I set the default value for an HTML <select> element?How to disable resizable property of textarea?Redirect from an HTML pageWhy does HTML think “chucknorris” is a color?
Is dd if=/dev/urandom of=/dev/mem safe?
Problem in styling a monochrome plot
Heisenberg uncertainty principle in daily life
Decreasing star size
Can two figures have the same area, perimeter, and same number of segments have different shape?
Piece-drop Mate #2
what happens if i forgot to feed my sourdough starter?
AC contactor 1 pole or 2?
Trapped in an ocean Temple in Minecraft?
TSA asking to see cell phone
Why/when is AC-DC-AC conversion superior to direct AC-Ac conversion?
What is the difference between 1/3, 1/2, and full casters?
Why did Saturn V not head straight to the moon?
Assuring luggage isn't lost with short layover
What does コテッと mean?
Can the term divorcée apply if a woman has not only divorced, but subsequently remarried?
Commercial jet accompanied by small plane near Seattle
How can I stop myself from micromanaging other PCs' actions?
Did the IBM PC use the 8088's NMI line?
Is a topological space considered to be a class in set theory?
High income, sudden windfall
Spoken encryption
Basic Questions on Wiener Filtering
Is it legal to use cash pulled from a credit card to pay the monthly payment on that credit card?
How to get value from outside on HTML?
What are valid values for the id attribute in HTML?How to horizontally center a <div>?Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?How to check whether a checkbox is checked in jQuery?HTML 5: Is it <br>, <br/>, or <br />?How to create an HTML button that acts like a link?How can I set the default value for an HTML <select> element?How to disable resizable property of textarea?Redirect from an HTML pageWhy does HTML think “chucknorris” is a color?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to get value from outside for progress. But it's not working.
<form oninput="y.value=parseInt(height.value)">
Yaşınız:<input type="text" name="age"><br>
Boyunuz: <input type="range" name="height" min="150" max="230">
<output onchange="bar.value=parseInt(y.value)" name="y"></output>cm <br>
<progress name="bar" max="230"></progress>
</form>
html
add a comment |
I want to get value from outside for progress. But it's not working.
<form oninput="y.value=parseInt(height.value)">
Yaşınız:<input type="text" name="age"><br>
Boyunuz: <input type="range" name="height" min="150" max="230">
<output onchange="bar.value=parseInt(y.value)" name="y"></output>cm <br>
<progress name="bar" max="230"></progress>
</form>
html
How would this work? Via some kind of server framework or wishful thinking?
– mplungjan
Mar 26 at 17:48
Welcome to stackoverflow. I'm sorry, but your question is very very unclear. What do you mean by from outside??
– freefaller
Mar 26 at 17:49
I want to forge a link between progress and range. For example range value = 120, progress value = 120
– Python Team
Mar 26 at 17:53
add a comment |
I want to get value from outside for progress. But it's not working.
<form oninput="y.value=parseInt(height.value)">
Yaşınız:<input type="text" name="age"><br>
Boyunuz: <input type="range" name="height" min="150" max="230">
<output onchange="bar.value=parseInt(y.value)" name="y"></output>cm <br>
<progress name="bar" max="230"></progress>
</form>
html
I want to get value from outside for progress. But it's not working.
<form oninput="y.value=parseInt(height.value)">
Yaşınız:<input type="text" name="age"><br>
Boyunuz: <input type="range" name="height" min="150" max="230">
<output onchange="bar.value=parseInt(y.value)" name="y"></output>cm <br>
<progress name="bar" max="230"></progress>
</form>
html
html
edited Mar 26 at 17:47
mplungjan
94k23 gold badges132 silver badges190 bronze badges
94k23 gold badges132 silver badges190 bronze badges
asked Mar 26 at 17:45
Python TeamPython Team
1
1
How would this work? Via some kind of server framework or wishful thinking?
– mplungjan
Mar 26 at 17:48
Welcome to stackoverflow. I'm sorry, but your question is very very unclear. What do you mean by from outside??
– freefaller
Mar 26 at 17:49
I want to forge a link between progress and range. For example range value = 120, progress value = 120
– Python Team
Mar 26 at 17:53
add a comment |
How would this work? Via some kind of server framework or wishful thinking?
– mplungjan
Mar 26 at 17:48
Welcome to stackoverflow. I'm sorry, but your question is very very unclear. What do you mean by from outside??
– freefaller
Mar 26 at 17:49
I want to forge a link between progress and range. For example range value = 120, progress value = 120
– Python Team
Mar 26 at 17:53
How would this work? Via some kind of server framework or wishful thinking?
– mplungjan
Mar 26 at 17:48
How would this work? Via some kind of server framework or wishful thinking?
– mplungjan
Mar 26 at 17:48
Welcome to stackoverflow. I'm sorry, but your question is very very unclear. What do you mean by from outside??
– freefaller
Mar 26 at 17:49
Welcome to stackoverflow. I'm sorry, but your question is very very unclear. What do you mean by from outside??
– freefaller
Mar 26 at 17:49
I want to forge a link between progress and range. For example range value = 120, progress value = 120
– Python Team
Mar 26 at 17:53
I want to forge a link between progress and range. For example range value = 120, progress value = 120
– Python Team
Mar 26 at 17:53
add a comment |
1 Answer
1
active
oldest
votes
Perhaps you meant this?
document.querySelector("form").addEventListener("input", function()
var val = parseInt(this.height.value);
this.y.value = val;
document.getElementById("bar").value = val;
);
var height = document.getElementById("height").value;
document.getElementById("y").value = height
document.getElementById("bar").value = height
<form>
Yaşınız:<input type="text" name="age"><br/>
Boyunuz: <input type="range" name="height" id="height" min="150" max="230">
<output name="y" id="y"></output>cm<br/>
<progress name="bar" id="bar" max="230"></progress>
</form>
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55363335%2fhow-to-get-value-from-outside-on-html%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Perhaps you meant this?
document.querySelector("form").addEventListener("input", function()
var val = parseInt(this.height.value);
this.y.value = val;
document.getElementById("bar").value = val;
);
var height = document.getElementById("height").value;
document.getElementById("y").value = height
document.getElementById("bar").value = height
<form>
Yaşınız:<input type="text" name="age"><br/>
Boyunuz: <input type="range" name="height" id="height" min="150" max="230">
<output name="y" id="y"></output>cm<br/>
<progress name="bar" id="bar" max="230"></progress>
</form>
add a comment |
Perhaps you meant this?
document.querySelector("form").addEventListener("input", function()
var val = parseInt(this.height.value);
this.y.value = val;
document.getElementById("bar").value = val;
);
var height = document.getElementById("height").value;
document.getElementById("y").value = height
document.getElementById("bar").value = height
<form>
Yaşınız:<input type="text" name="age"><br/>
Boyunuz: <input type="range" name="height" id="height" min="150" max="230">
<output name="y" id="y"></output>cm<br/>
<progress name="bar" id="bar" max="230"></progress>
</form>
add a comment |
Perhaps you meant this?
document.querySelector("form").addEventListener("input", function()
var val = parseInt(this.height.value);
this.y.value = val;
document.getElementById("bar").value = val;
);
var height = document.getElementById("height").value;
document.getElementById("y").value = height
document.getElementById("bar").value = height
<form>
Yaşınız:<input type="text" name="age"><br/>
Boyunuz: <input type="range" name="height" id="height" min="150" max="230">
<output name="y" id="y"></output>cm<br/>
<progress name="bar" id="bar" max="230"></progress>
</form>
Perhaps you meant this?
document.querySelector("form").addEventListener("input", function()
var val = parseInt(this.height.value);
this.y.value = val;
document.getElementById("bar").value = val;
);
var height = document.getElementById("height").value;
document.getElementById("y").value = height
document.getElementById("bar").value = height
<form>
Yaşınız:<input type="text" name="age"><br/>
Boyunuz: <input type="range" name="height" id="height" min="150" max="230">
<output name="y" id="y"></output>cm<br/>
<progress name="bar" id="bar" max="230"></progress>
</form>
document.querySelector("form").addEventListener("input", function()
var val = parseInt(this.height.value);
this.y.value = val;
document.getElementById("bar").value = val;
);
var height = document.getElementById("height").value;
document.getElementById("y").value = height
document.getElementById("bar").value = height
<form>
Yaşınız:<input type="text" name="age"><br/>
Boyunuz: <input type="range" name="height" id="height" min="150" max="230">
<output name="y" id="y"></output>cm<br/>
<progress name="bar" id="bar" max="230"></progress>
</form>
document.querySelector("form").addEventListener("input", function()
var val = parseInt(this.height.value);
this.y.value = val;
document.getElementById("bar").value = val;
);
var height = document.getElementById("height").value;
document.getElementById("y").value = height
document.getElementById("bar").value = height
<form>
Yaşınız:<input type="text" name="age"><br/>
Boyunuz: <input type="range" name="height" id="height" min="150" max="230">
<output name="y" id="y"></output>cm<br/>
<progress name="bar" id="bar" max="230"></progress>
</form>
answered Mar 26 at 18:01
mplungjanmplungjan
94k23 gold badges132 silver badges190 bronze badges
94k23 gold badges132 silver badges190 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55363335%2fhow-to-get-value-from-outside-on-html%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How would this work? Via some kind of server framework or wishful thinking?
– mplungjan
Mar 26 at 17:48
Welcome to stackoverflow. I'm sorry, but your question is very very unclear. What do you mean by from outside??
– freefaller
Mar 26 at 17:49
I want to forge a link between progress and range. For example range value = 120, progress value = 120
– Python Team
Mar 26 at 17:53