Hi, > like: var id = "<%=id from jsp%>";
That would work, provided that at that point in the JSP rendering of the output (on the server), you have the ID you want in a variable or something, e.g.: var id = "<%=theId%>"; Remember that this is controlling what gets sent to the client. So if at that point in the JSP processing, `theId` contains "foo", what gets sent to the client would be: var id = "foo"; HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Feb 25, 8:06 pm, Jane <wwu...@gmail.com> wrote: > Hi, > > I would like to ask can the 'id_of_container' in Sortable.create > (Sortable.create('id_of_container',[options]);) be a dynamical value? > I would like to pass in a jsp variable into it. > > like: var id = "<%=id from jsp%>"; > > Sortable.create(id,[options]); > > Thanks in advance for you help. > > Jane -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.