Hi,
it looks like the following bug is back since jQuery 1.6.1:
http://bugs.jquery.com/ticket/1474
My calendar plugin is broken therefore.
Regards, R.
List info: http://lists.roundcube.net/dev/ BT/aba52c80
On 08/23/2011 06:37 AM, Roland Liebl wrote:
Hi,
it looks like the following bug is back since jQuery 1.6.1:
What is you Browser, Roland?
My calendar plugin is broken therefore.
Regards, R.
List info: http://lists.roundcube.net/dev/ BT/77b78e7e
On 23.08.2011 05:37, Roland Liebl wrote:
http://bugs.jquery.com/ticket/1474
My calendar plugin is broken therefore.
Don't use selectedIndex attribute, use .val() instead.
Am 23.08.2011 08:37, schrieb A.L.E.C:
On 23.08.2011 05:37, Roland Liebl wrote:
http://bugs.jquery.com/ticket/1474
My calendar plugin is broken therefore.
Don't use selectedIndex attribute, use .val() instead.
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)?
List info: http://lists.roundcube.net/dev/ BT/aba52c80
Am 23.08.2011 07:49, schrieb Bogomil "Bogo" Shopov:
On 08/23/2011 06:37 AM, Roland Liebl wrote:
Hi,
it looks like the following bug is back since jQuery 1.6.1:
What is you Browser, Roland?
I notice the bug in all major browsers (IE9/FF6+7/Chrome).
My calendar plugin is broken therefore.
Regards, R.
List info: http://lists.roundcube.net/dev/ BT/77b78e7e
List info: http://lists.roundcube.net/dev/ BT/aba52c80
On Tue, Aug 23, 2011 at 2:16 AM, Roland Liebl roland@roland-liebl.de 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. _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/aba52c80
Am 23.08.2011 09:47, schrieb Stephen J. Butler:
On Tue, Aug 23, 2011 at 2:16 AM, Roland Liebl roland@roland-liebl.de 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:
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 (me@mydomain.tld) throws an uncaught exception. _opt_ has to be quoted now.
$('#remindermailto option[value="' + opt + '"]').length
List info: http://lists.roundcube.net/dev/ BT/aba52c80
On Tue, Aug 23, 2011 at 2:57 AM, Roland Liebl roland@roland-liebl.de wrote:
Am 23.08.2011 09:47, schrieb Stephen J. Butler:
On Tue, Aug 23, 2011 at 2:16 AM, Roland Liebl roland@roland-liebl.de 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:
Please check the ticket I posted.
$('myDropdown').attr('selectedIndex',3);
The dropdown position is not changed.
From the docs, 3rd paragraph:
"For example, selectedIndex, tagName, nodeName, nodeType, ownerDocument, defaultChecked, and defaultSelected should be retrieved and set with the .prop() method. Prior to jQuery 1.6, these properties were retrievable with the .attr() method, but this was not within the scope of attr. These do not have corresponding attributes and are only properties."
I tried your example with this setup (through console) and it changed the selection for me:
$("#foo").prop( "selectedIndex", 3 ) changes the select to "Four". _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/aba52c80