Extract values from url using jquery
Hi following is part of a urlLekshmiTravels/Places.aspx?fplace=Mumbai%20Central,%20 Mumbai,%20 Maharashtra,%20India&tplace=Vikroli%20Station%20(East),%20Vikhroli%20East,%20Mumbai, %20Maharashtra,%20India,&t1=xyz&dt2=klty
my requirement is to extract values from this url
here fplace=Mumbai%20Central,%20 Mumbai,%20 Maharashtra,%20India
there are 3 comma separator in fplace .i need the last 2 comma separator values means avoid mumbai central
and fplace should be Mumbai,Maharashtra,India
and tplace also should last 2 commaseparate values
ie Mumbai,Maharashtra,India and
t1=xyz and t2=klty
How it is possible using jquery
Regards
Baiju