jacky_xu
Junior Member
Posts: 5
Registered: 9/19/2006
Member Is Offline
|
| posted on 9/19/2006 at 09:00 PM |
|
|
how to multi-select the items on the tree menu?
hello.i wanna multi-select the items on the tree menu so i added '<INPUT TYPE="checkbox" NAME="">' but then i was not able to select any
one checkbox and the error said 'need ;'
what can i do?help me,thanks
jacky_xu has attached this image:
|
|
|
tigra
Administrator
Posts: 1912
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 9/19/2006 at 09:07 PM |
|
|
Looks like some syntax error. Try escaping the double quotes:
'<INPUT TYPE=\"checkbox\" NAME=\"\">'
|
|
|
jacky_xu
Junior Member
Posts: 5
Registered: 9/19/2006
Member Is Offline
|
| posted on 9/19/2006 at 09:26 PM |
|
|
| Quote: | Originally posted by tigra
Looks like some syntax error. Try escaping the double quotes:
'<INPUT TYPE=\"checkbox\" NAME=\"\">' |
thanks for your reply.but i just adjusted my code and tried again,the error was the same
my code is as following:
......
['<INPUT TYPE=\"checkbox\" NAME=\"id\" value=\"<%=func.getFunctionId()%>\"><%=func.getFunctionName()%>', '',],
......
thanks you.
|
|
|
jacky_xu
Junior Member
Posts: 5
Registered: 9/19/2006
Member Is Offline
|
| posted on 9/19/2006 at 09:36 PM |
|
|
it was ok!
when i added the <td></td>lables to hug the checkbox.it worked.and my code is here:
['<td><INPUT TYPE=\"checkbox\" NAME=\"id\"value=\"<%=func.getFunctionId()%>\"><%=func.getFunctionName()%></td>', '',],
whatever,thanks to everybody.
|
|
|
jacky_xu
Junior Member
Posts: 5
Registered: 9/19/2006
Member Is Offline
|
| posted on 9/19/2006 at 10:37 PM |
|
|
oh,no
what a shame.the question is still bother me.the error is "lack of ;"
who can help me ?thanks for any reply.
|
|
|
jacky_xu
Junior Member
Posts: 5
Registered: 9/19/2006
Member Is Offline
|
| posted on 9/19/2006 at 11:39 PM |
|
|
it works
this is the right string:
['<td><INPUT TYPE=\'checkbox\' NAME=\'id\'value=\'<%=func.getFunctionId()%>\'><%=func.getFunctionName()%></td>', '',],
not
['<td><INPUT TYPE=\"checkbox\" NAME=\"id\"value=\"<%=func.getFunctionId()%>\"><%=func.getFunctionName()%></td>', '',],
|
|
|