Get value of selected object
Hi guys..I'm new with Jquery and I'm trying one thing.
I'm using a JQuery UI example like below:
- <script type="text/javascript">
- $(function() {
- $("#selectable").selectable();
- });
- </script>
- <ol id="selectable">
- <li class="ui-state-default" id="1">TEST</li>
- <li class="ui-state-default" id="2">TEST</li>
- <li class="ui-state-default" id="3">TEST</li>
- ...
- </ol>
What I'm trying to do is to get the id of the selected object and add this ID to a variable so I can check the values that were selected.
Thanks in advance