jquery ui selectable get id?

Posted by Grinart on Stack Overflow See other posts from Stack Overflow or by Grinart
Published on 2010-05-24T19:09:42Z Indexed on 2010/05/24 19:11 UTC
Read the original article Hit count: 261

Filed under:
|
|
|
|

how to get 'id' of item in selectable list, if the list is created dunamically?

  <ul id="selectable">
 <li id='1'>..</li>
    .
    .
    <li...
  </ul>

I tried var num = $('#selecable :selected').attr( "option" , 'id' );

but get only [object Object]... what is the right way?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ui