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.

Reply via email to