Bug Tracker

Ticket #6207 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

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

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

Change History

comment:1 Changed 5 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from event to attributes

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.