Why is this? I ran into the same problem and from what I was seeing, the replace() was only replacing the very first match. My work around was pretty simple, I just keep running replace() until it was done, but I'm dumbfounded as to why this would need to be done.
while (newLastRow.html().indexOf(settings.placeholder) > -1){
As with the other post, I'm dynamically adding html to the page using a template, where the replace() method is updating the IDs of the fields when adding a new instance.
What's special about the value returned by the html() method? Is there a different preferred way to do this?
Ok, so I can get the visible selector and the toggle method to work in Chrome (v10.0.648.205 in Win7) in other scenarios but in the attached page they won't work and I can't figure out why. I followed the logic to the Sizzle function but I got lost there. Yes, this all works just fine in IE8 and FF 3.6
When you extract the attached page information (I saved the page from inside Chrome) the problematic method is in \Terminate_Coverage_files\OLETermination.js. The function is the 3rd from the top in that file, and called toggleTermField(id).
To trigger it, load the page, select either Medical or Dental, and then select and de-select a name that then appears below. The fields that appear when you select a name should disappear when de-selected but they don't in Chrome.
You will be able to see the different ways I've tried to tackle the problem in the toggleTermField function. The only one that works in Chrome is the hack that sets an attribute on the span that is being toggled.
Just so it's clear, I can get the visible selector and toggle method to work in Chrome in other situations and in jsFiddle.
Any suggestions as to why this scenario is different are greatly appreciated.
I want to retrieve all of a given class within a jQuery object that already exists but when I give the children() method a selector it never returns anything. If I leave it blank it returns the imediate children but I can't get it to do anything else.