Bug Tracker

Modify

Ticket #11519 (closed bug: duplicate)

Opened 14 months ago

Last modified 14 months ago

String replace BUG

Reported by: davide.falchetto@… Owned by: davide.falchetto@…
Priority: undecided Milestone: None
Component: attributes Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

Hi.

The following instruction:

var idToDelete = jq(this).attr('id').replace('recordis-',);

that work with jquery 1.7.1, now with version 1.7.2 does not work anymore.

Error is 'replace is not a function'.

Thanks.

Change History

comment:1 Changed 14 months ago by rwaldron

  • Owner set to davide.falchetto@…
  • Status changed from new to pending
  • Component changed from unfiled to attributes

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate:  http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to begin.

comment:2 Changed 14 months ago by rwaldron

  • Status changed from pending to closed
  • Resolution set to duplicate

Caused by attr() returning incorrect value

Can you list here all the other scripts or jQuery Plugins you're using in your code? Thanks!

comment:3 Changed 14 months ago by rwaldron

Duplicate of #11527.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.