House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / JQuery

Need to find/ replace() in an entire DOM

Author:
Will Tomlinson
02/15/2010 03:50 PM

Hey, I need to traverse an entire DOM, find a match for a pattern like this: someController.somemapping And I need to replace that text with this: someController.somemapping&someURLVar=someValue This pattern could be located ANYwhere in the document - a form action, an onclick, etc. Here's what I've built so far, but it doesn't work. Any ideas would be appreciated: $(document).ready(function() {   var regexp = /([a-zA-Z]+\.[a-zA-Z]+)/;   $(this).html().replace(regexp,$1 + "&someURLVar=someValue"); }); Thanks, Will


Search jquery

February 12, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29