Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jasmin 5 posts 85 karma points
    Mar 17, 2022 @ 19:13
    Jasmin
    0

    Selected Option value

    I have a options list:

    <select>
                <option value="14">Ab 14</option>
                <option value="16">Ab 16</option>
                <option value="18">Ab 18</option>
                <option value="21">Ab 21</option>
     </select>
    

    I want to get the value of the selected one in a variable.

  • Corné Hoskam 80 posts 587 karma points MVP 3x c-trib
    Mar 22, 2022 @ 12:39
    Corné Hoskam
    100

    Hi Jasmin,

    I don't think this is an Umbraco related question, but a Javascript related one. Without knowing the context, perhaps the following link could help you out:

    https://www.nicesnippets.com/blog/how-to-get-value-of-selected-option-in-javascript

    Kind regards,

    Corné Hoskam

Please Sign in or register to post replies

Write your reply to:

Draft