[Seaside] JQuery - how to get selectedIndex from a select list?
squeakman
squeakman at gmail.com
Fri Nov 9 14:57:45 UTC 2012
Greetings,
I am learning how to use JQuery with Seaside. I have a <select> list
and I want to get the selectedIndex when the user clicks on an item in
the list.
The code below returns 'nil' for the value in the callback block - at
the "self halt"
I am using JQuery 1.6.
Any help would be very much appreciated.
Thanks,
Frank
renderContentOn: html
(html select)
id: #selList;
list: aList;
onClick: (html jQuery ajax
callback: [:v | self halt]
value: ((html jQuery id: #selList) property: 'selectedIndex'))
More information about the seaside
mailing list