I have a list of documents that start like this ...
MR 100 12.12.10 MR 100 11.12.10 MR 201 03.06.08 MR 458 04.06.09
How to get document names for MR 100 only and ignore everything after second space using jquery?
You can format the name with split() slice() and join() :
split()
slice()
join()
var s = "MR 100 12.12.10".split(" ").slice(0,2).join(" ");
How you can choose the name of each document depends on how your page is installed.