in vb6 there was a very handy function for string manipulation which could put a character at a certain position of another string and i'm looking for an extended jquery equivalent.
let's say i'm having this string:
var mystring = "__1__";
when applying the function:
var mystring = mid(mystring,4,"x");
it should return __1x_
another example:
var mystring = "";
var mystring = mid(mystring,5,"x");
should return: ____5
i know it requires string manipulation using substr but i was wondering if there's a more elegant way? thanks