Works a treat.

Gracias !



Karl Swedberg-2 wrote:
> 
> 
> Hi there,
> 
> I think you can do it this way:
> 
> $("#myDiv [title*='_']").attr('title',function () {
>       return this.title.replace(/_/g,' ');
> });
> 
> --Karl
> ____________
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
> 
> 
> 
> 
> On Jun 30, 2008, at 10:03 AM, 5atfink wrote:
> 
>>
>>
>> I'm sure this is easy but at a loss how to do it..
>>
>> I need to strip out the underscore character "_" from...
>>
>> <div id="myDiv" title="name_surname">
>>
>> resulting in
>>
>> <div id="myDiv" title="name surname">
>>
>> I've got as far as targeting it fine using...
>>
>> $("#myDiv [title*='_']").attr({
>> // at a loss what to do here
>> });
>>
>> Any pointers anyone?
>>
>> Thanks
>>
>> --  
>> View this message in context:
>> http://www.nabble.com/Removing-character-from-title-attribute-tp18194975s27240p18194975.html
>> Sent from the jQuery General Discussion mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Removing-character-from-title-attribute-tp18194975s27240p18210946.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to