Bug Tracker

Opened 13 years ago

Closed 13 years ago

#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:
Blocked by: Blocking:


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.


Change History (1)

comment:1 Changed 13 years ago by john

Component: eventattributes
Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.