smfmetro10
asked on
how do you check for two parameters with jquery
Hi,
I'm trying to check the url for either "ID_xxxxx" or "CON_ID_xxxxxx"
The "x" is either a five or six figure number
This is what I have so far. Thanks for the help!
I'm trying to check the url for either "ID_xxxxx" or "CON_ID_xxxxxx"
The "x" is either a five or six figure number
This is what I have so far. Thanks for the help!
<script type="text/javascript">
$(document).ready(function () {
if(window.location.href.indexOf("ID" || "CON") > -1)
{
alert("found it");
}
});
</script>
I assume you want the xxxxx part so what's an example url
(or maybe not)
(or maybe not)
ASKER
Ah - it would either be "ID_12345" or" CON_ID_123456"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
>>>
if ((window.location.href.ind