Using Output From Two Drop Down Lists To Create Text In Multiple Places October 27, 2023 Post a Comment I have several drop down lists as follows: 10002000&lSolution 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<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><selectname="dropdown"id="dropdown"><optionvalue="1000">1000</option><optionvalue="2000">2000</option><optionvalue="3000">3000</option><optionvalue="4000">4000</option></select><selectname="dropdown2"id="dropdown2"><optionvalue="12">12</option><optionvalue="24">24</option><optionvalue="36">36</option><optionvalue="48">48</option></select><spanid="labelOne"></span> * <spanid="labelTwo"></span> = <spanid="total"></span>Copy Share Post a Comment for "Using Output From Two Drop Down Lists To Create Text In Multiple Places" Top Question Red Border Still Appears On Inputs After Resetting An HTML 5 Form Firefox I have an HTML 5 form! Great, I'm excited! I decide to … Flex-box Only Display As Many Items That Fit In A Container I want to only use CSS to make it so I have a container whi… How To Add Vertical Sub-menu To Horizontal Menu Using Css And Html? I want to add a vertical sub-menu to my horizontal menu. I … How Exactly Can I Replace An Iframe With A Div And Javascript? I have a page that loads an external HTML page into an iFra… JavaScript Simple Redirect After Password Is Entered I just want to click a button, then, if you get the passwor… Auto Refresh IFrame HTML How do I auto Refresh a Iframe every 3 Seconds with out it … Angular 4 Template Binding With Es6 Template String Something I could do in Vue, but doesn't appear to work… Listen For Mouse Click And Keypress Events Within Iframe I would like to add some explanations to each slide of an e… Flexbox Half Side Layout, Left Side Image Fixed How I can split screen half and left side is image fixed (l… Adding A Hyperlink To Wordpress' Simplicity-Lite Featured-box Element I'm building a site for one of my very first clients us… December 2024 (1) November 2024 (39) October 2024 (55) September 2024 (19) August 2024 (375) July 2024 (340) June 2024 (659) May 2024 (1284) April 2024 (748) March 2024 (1519) February 2024 (1714) January 2024 (1352) December 2023 (601) November 2023 (301) October 2023 (570) September 2023 (290) August 2023 (325) July 2023 (266) June 2023 (349) May 2023 (225) April 2023 (145) March 2023 (136) February 2023 (166) January 2023 (258) December 2022 (129) November 2022 (226) October 2022 (179) September 2022 (156) August 2022 (294) July 2022 (98) Menu Halaman Statis Beranda © 2022 - Html5 Lite