I have two selected elements, with the same option, and the same value for these options, but different (translated) text
How can I copy selection from each other?
From a user's perspective, if a person is "red" (value = 1) and "gray" (value = 1) and "rufum" (value = 5) " (value = 5) Unfortunately, it omits I found several ways to copy the item, but there can be no way to make a copy of the actual selection. Edit: EDIT: If possible, I want to work for both single and multilevel. I know first that I have not regretted in my Bela. If you see However, if your (This is why jQuery popular: JavaScript DOM interface is often useless .) & lt; Input & gt; For the tag, this works:
$ (this) .closest ('.magic-guardian') .fund (".in common identifier"). No (this) .val ($ (this) .val ());
& lt; Select & gt; tag.
& lt; Select & gt; Elements have a property
selectedIndex which indicates which of their options are selected.
selectedIndex << code> a
& lt; Select & gt; , then
selected index to other
and select & gt; Set to , you should get the result you are looking for. / P>
& lt; Select & gt; Accepts multiple selections (as your question means), so this is a bit more tedious.
& lt; Options & gt; You must loop through the elements and each has to see if this
selected property is true or not.
No comments:
Post a Comment