No jQuery needed! Just use the substring method:
var gorge = name.substring(4);
Or if the text you want to remove isn’t static:
var name="nameGorge";
var toRemove="name";
var gorge = name.replace(toRemove,'');
No jQuery needed! Just use the substring method:
var gorge = name.substring(4);
Or if the text you want to remove isn’t static:
var name="nameGorge";
var toRemove="name";
var gorge = name.replace(toRemove,'');