Am 23.08.2011 09:47, schrieb Stephen J. Butler:
> On Tue, Aug 23, 2011 at 2:16 AM, Roland Liebl 
> <[email protected]> wrote:
>> I can't use .val() because the selector values vary dynamically
>> and I know only the index. Are there concerns to switch back to
>> DOM Method (document.getElementById('myid').selectedIndex = x)?
>
> Isn't this what .prop() is for? Your case works for me with the 
> latest
> jQuery and Firefox.

In the docs I don't see an example for my use-case:

http://api.jquery.com/prop/

Please check the ticket I posted.

$('myDropdown').attr('selectedIndex',3);

The dropdown position is not changed.

In addition there is a further problem in jquery 1.6.x:

$('#remindermailto option[value=' + opt + ']').length

... where _opt_ is an email address ([email protected])
throws an uncaught exception. _opt_ has to be quoted now.

$('#remindermailto option[value="' + opt + '"]').length


_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/8f4f07cd

Reply via email to