Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7551313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:27:41+00:00 2026-05-30T10:27:41+00:00

The original URL is http://mysite.com/locations.aspx When someone clicks on Locations link somewhere and come

  • 0

The original URL is http://mysite.com/locations.aspx
When someone clicks on Locations link somewhere and come to this page, on page load, i want the URl to appended as follows on the fly? The Hospital is a checkbox on the page which needs to be checked by default. So when they land on the page, they see all the hospitals instead of having to check the hospital check box and reload the page. Is this possible using jquery?

http://mysite.com/locations.aspx?k=(“Hospital”)

Find locations by&#160;<input name="Keyword" type="text" size="70"/><input name="Search" type="submit" value="Search"/><br/><br/>

Hospitals<input name="Hospitals" type="checkbox" value="Hospital"/> &#160; 
Offices<input name="Office" type="checkbox" value="Office"/> &#160; 
Emergency Centers<input name="EmergencyCenters" type="checkbox" value="Emergency"/>&#160; 
Out-Patient Centers<input name="Out-Patient" type="checkbox" value="Out-Patient"/>&#160; 
Facilities<input name="Facility" type="checkbox" value="Facility"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:27:42+00:00Added an answer on May 30, 2026 at 10:27 am

    You could create (inside the page http://mysite.com/locations.aspx ) a function like:

    function getDefault() {
    var trail = '?k=("Hospital")';
    var url = "http://mysite.com/locations.aspx" + trail;
    window.location = url;
    }
    

    and add onload to the <body> tag like

    <body onload="getDefault();">
    

    of course, it will reload the page (without user intervention) but with the new trailing parameter.

    … as for the check box, you can add the proper attribute

    $(document).ready(function() {
    $("input[name=Hospitals]").attr('checked','checked');
    }); //  ready
    

    and it will be checked on the fly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying a redirect on a page that goes like this: original URL: http://www.foo.com/products/
I guess the title almost says it all. My original url looks like: http://www.something.com/buy/index.php?p=025823
Let's say I have a URL: http://example.com/person/list This website will display a list of
I have a url that is displayed as this : http://www.amazon.com/gp/product/0307408418/ref=s9_al_bw_ir01?pf_rd_m=ATVPDKIKX0DER&amp;pf_rd_s=center-3&amp;pf_rd_r=0ZHX172F5RRJXR7D5EKD&amp;pf_rd_t=101&amp;pf_rd_p=1313842642&amp;pf_rd_i=283155 What happens though
The javascript below extracts www.google.com from http://mysite.com?url=www.google.com and writes it as an <a> href
I want to perform a redirection like this: http://www.example.com/something1 http://www.example.com/something2 http://www.example.com/something3 to http://www.example.com/something1.aspx http://www.example.com/folder/something2.pdf
Example real site http://stackoverflow.com/ URL Masking http://masking.com/stackoverflow Question How to switch the URL masking
I have a url like: http://skepticalgamer.com/category/slam-the-controller I'd like to strip out category from the
Using the Dosis font from Google Webfonts ... @import url(http://fonts.googleapis.com/css?family=Dosis:400,300,200,500,600,700,800); after extensive testing in
This is an example of what I am trying to achieve. The original URL:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.