oo now I know it ... thank you Richard :)
On Jun 7, 8:28 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > $('a.pop').each(function() { > $(this).text('change to something'); > > }); > > since 'this' is each DOMElement, you need to wrap it in $() to be able to > call the jQuqyer .text() method. > > - Richard > > Richard D. Worthhttp://rdworth.org/ > > On Sat, Jun 7, 2008 at 2:31 AM, Adwin Wijaya <[EMAIL PROTECTED]> wrote: > > > Hi ... > > > I just want to modify my del.icio.us page so that the font color won't > > look bad (using jquery and greasemonkey) ... :) > > > I did that .. and now I want to change the text inside <a > > class='pop'> > > like this > > > [code]<a class="pop" style="padding: 0pt 0.2em; background-color: > > white; color: red;" href="/url/b695236dbc5a6b551e49de8a718a89df">saved > > by 651 other people</a> > > [/code] > > > but I don't know how to modify text "saved by ... other people". I > > wanto add a new style for example if it saved by less than 100, the > > color will be light yellow, 100-300 color will be yellow, etc ... but > > i have no idea how to add and change the element inside ;) > > > here is my jquery > > > [code] > > $('a.pop').each(function(data){ > > this.text = 'change to something '; // won't change ... :( > > }); > > [/code] > > > any idea ? :D