-3

i have this URL :

http://sath3g.altervista.org/jsonint.html+?id=4545ga

In which way i can take the value of the id with jquery or javascript??? The most important thing is that i can not use php !

Boomer
  • 57
  • 5

1 Answers1

0

You can do this:

"http://sath3g.altervista.org/jsonint.html+?id=4545ga".split('=')[1];

Or more particular:

"http://sath3g.altervista.org/jsonint.html+?id=4545ga".match(/id=(\d+)/).pop();
Amit Joki
  • 58,320
  • 7
  • 77
  • 95