I have an href link as follows.i have to spilt name value and id value separately.
index.html?names=priya@gmail.com&id=68
Using jquery how can i split priya@gmail.com and 68
i tried the following one
var val =location.href.split('?')[1]
which outputs the priya@gmail.com&id=68
i have to output priya@gmail.com and 68 separately..how it is possible..