javascript - How to remove certain part of string -


(1) website name

(3) website name - 08-08-2013 new york city

from examples above, how able remove rounded brackets , value inside using jquery or javascript?

i understand able title using code below

var current_title = $(document).attr('title');

var current_title = $(document).attr('title');  current_title = current_title.replace(/^\(\d+\)\s+/,''); 

hope helps


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -