Side navigation
#6207 closed bug (invalid)
Opened March 02, 2010 08:43PM UTC
Closed March 02, 2010 08:49PM UTC
Click Event on List Item
| Reported by: | joe_average | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | attributes | Version: | 1.4.2 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
It is possible that I am not using the function correctly, but I ran into problems binding a click event to items in unordered lists. I kept receiving an error from line 1390 [return (elem.value || "").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
Attachments (0)
Change History (1)
Changed March 02, 2010 08:49PM UTC by comment:1
| component: | event → attributes |
|---|---|
| resolution: | → invalid |
| status: | new → closed |
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.