I am currently working with jQuery and have encountered an issue regarding the reset
functionality for a dropdown list. Specifically, after adding default options in both
Arabic and English, the reset button does not display correctly.
When a value is selected, I want to show a reset button (denoted as "X").
However, if no option is selected, the dropdown should display either "Select port" or "???? ????" without showing the reset button.
Before changing the language to Arabic or English, the reset button appears as expected. Here is the relevant code snippet:
row += "";
}
After switching to Arabic or English, the reset button ("X") does not appear. The code for the dropdown with the default option is as follows:
var defaultOption = MYLang.ReturnLang() == "ar-KW" ? "???? ????" : "select port";
row += "
Additionally, I would like an image to illustrate the reset button in red on the second row.

Amira BedhiafiPosted Jan 19, 2025, 6:24 PM
Can you try the following :