You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to use the select() method using the string value of one of the options as a first argument, no values are returned and no item is selected.
I am attempting to set the value of a dropkick select using a "related" value determined by an autosuggest on the same page. I've managed to verify that the arguments being passed are correct. The value being passed is an integer, but I'm using String() to ensure that it passes as a string value to the method, and verified that this is happening.
Edit: I believe I've confirmed this problem by adding the following to the unit test code:
QUnit.test( "Dropkick selects an item by option value.", 1, function( assert) {
var dk = new Dropkick("#normal_select");
dk.select("AL");
assert.equal(dk.value, "AL");
});
The text was updated successfully, but these errors were encountered:
brianAround
changed the title
Method select(string, disabled) doesn't select/return element matching string
Method select(string, disabled) doesn't select/return element matching string v. 2.0.2
Nov 19, 2014
When attempting to use the select() method using the string value of one of the options as a first argument, no values are returned and no item is selected.
I am attempting to set the value of a dropkick select using a "related" value determined by an autosuggest on the same page. I've managed to verify that the arguments being passed are correct. The value being passed is an integer, but I'm using String() to ensure that it passes as a string value to the method, and verified that this is happening.
Edit: I believe I've confirmed this problem by adding the following to the unit test code:
QUnit.test( "Dropkick selects an item by option value.", 1, function( assert) {
var dk = new Dropkick("#normal_select");
dk.select("AL");
assert.equal(dk.value, "AL");
});
The text was updated successfully, but these errors were encountered: