The highlighted code above gives - 1) {} when used with the js/document *level-option* (commented code) 2) null when used in conjunction with the by-id function
So - 1) what is wrong with the above code? And how to get the selected index or value? 2) Is there a shorter way to get the value rather than the below function?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to enf...@googlegroups.com
Below is the code you are looking for. The key is you have cycle through the options and filter the :selected values.
(em/fromjs/document
:option["#level option"](em/filter:selected
(em/get-prop:value)))
Creighton Kirkendall
Manoj Waikar
unread,
Feb 5, 2013, 4:03:32 AM2/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to enf...@googlegroups.com
Ah! Thanks a lot Creighton, I would never have figured that out by myself :) Do you think we should mention this in the docs, because it is not very intuitive?
Regards, Manoj.
ckirkendall
unread,
Feb 9, 2013, 2:51:28 PM2/9/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to enf...@googlegroups.com
Sorry for not replying sooner its been crazy lately. I do have an example similar to this in the documentation but its with check boxes. You can find it by clicking on start, choosing "Documentation/Demos" and selecting "Get Data from the DOM." If I get a chance I will add the select box to the form.