Using Output From Two Drop Down Lists To Create Text In Multiple Places November 02, 2022 Post a Comment I have several drop down lists as follows: 1000 2000&l Solution 1: Here is a jquery solution: $(function() { var firstValue = $('#dropdown').val(); var secondValue = $('#dropdown2').val(); $('#labelOne').text(firstValue); $('#labelTwo').text(secondValue); $('#total').text(firstValue * secondValue); $('#dropdown').on('change', function(){ firstValue = $('#dropdown').val(); $('#labelOne').text(firstValue); $('#total').text(firstValue * secondValue); }); $('#dropdown2').on('change', function(){ secondValue = $('#dropdown2').val(); $('#labelTwo').text(secondValue); $('#total').text(firstValue * secondValue); }); });Copy <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <select name="dropdown" id="dropdown"> <option value="1000">1000</option> <option value="2000">2000</option> <option value="3000">3000</option> <option value="4000">4000</option> </select> <select name="dropdown2" id="dropdown2"> <option value="12">12</option> <option value="24">24</option> <option value="36">36</option> <option value="48">48</option> </select> <span id="labelOne"></span> * <span id="labelTwo"></span> = <span id="total"></span>Copy Share Post a Comment for "Using Output From Two Drop Down Lists To Create Text In Multiple Places" Top Question I Don't Want Pop Up Window To Be Resizable I have a popup window which appears after clicking on a but… @font-face Behavior Inconsistencies Inside Of @media Query Rules (ie9) The current behavior in Chrome, Firefox and Safari when it … Scroll To Top JavaScript In HTML Website I am trying to implement the scroll to top feature in my we… Iphone Silhouette With Scrolling Image Inside I am trying to make a iphone overlay with a scrolling image… How To Get The Content Of The Bottom Element Of A Flexbox To Be 100% Height Its Container If I make a flexbox with 2 children and column flow and set… How Can One Make A Container's Child Divs Match The Width Of The Largest Child In IE7? This seems like it should be a duplicate - I've found m… CSS Container Height I have a layout that should have a sidebar on the right han… How To Merge And Clean 2 Css Files With Overlapping Selectors/properties? Here I am, trying to do a decent job at maintaining a site … Change The Color Of Mesh Created Using Face3 I have created a mesh using face 3 and three js. But the de… Cannot Link My Css To My Html I'm at the last of my wits here. I've searched thro… December 2024 (1) November 2024 (36) October 2024 (57) September 2024 (21) August 2024 (363) July 2024 (335) June 2024 (703) May 2024 (1286) April 2024 (815) March 2024 (1571) February 2024 (1720) January 2024 (1389) December 2023 (1449) November 2023 (434) October 2023 (639) September 2023 (321) August 2023 (347) July 2023 (291) June 2023 (343) May 2023 (227) April 2023 (139) March 2023 (128) February 2023 (176) January 2023 (287) December 2022 (117) November 2022 (233) October 2022 (159) September 2022 (161) August 2022 (299) July 2022 (97) Menu Halaman Statis Beranda © 2022 - Html5 Pros