Here's one way:
$('option:contains("("), option:contains(")"').each(function() { var $this = $(this); var t = $this.text(); $this.text(t.replace(')',']').replace('(','[')); }); On 6/8/07, Kixe <[EMAIL PROTECTED]> wrote:
I would like to replace the follow code symbol "(" and ")" to "[" and "]" How can I do that ? before: <select id="abc" name="abc"> <option value="1">A (1st)</option> <option value="2">B (2nd)</option> </select> final result: <select id="abc" name="abc"> <option value="1">A [1st]</option> <option value="2">B [2nd]</option> </select> Anyone can help me ? thanks!