Okay, I have this code:
Option 1 Option 2
It's working better. Try it.
let value = $("select#yourId option").filter(":selected").val();