jquery How to select option in drop down by finding expected full string ID
I'm trying to select an ID from a drop down, here is the code line $(`#${rowid}`).find(`select option[value='ID']`).prop("selected", true); But I want showing the first value (1) before first semicolon in option value when ID=1 is selected Here is the option…