Modify ↓
Ticket #6207 (closed bug: invalid)
Click Event on List Item
| Reported by: | joe_average | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | attributes | Version: | 1.4.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
| "").replace(rreturn, "")]. elem.value was producing a -1, which since not interpreted as a string cannot use the replace function. To get around the problem I added a line checking elem.value for -1 and return an empty string if -1 is found. |
I tried searching the web to see if anyone else has run into the problem but did not find any.
Thanks
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

It sounds like you're trying to get the .val() of a list item - but list items don't have a value so you're getting an error.