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

  • SEARCH
  • Home
  • 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 9179637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:50:52+00:00 2026-06-17T17:50:52+00:00

I am using the following with an address picker. HTML <form> <input id=searchByLoc type=’checkbox’

  • 0

I am using the following with an address picker.

HTML

<form>
<input id="searchByLoc" type='checkbox' >
<input id="searchQuery" type='text' >
<input type="submit' value="search">
</form>

JQuery:

$('#searchByLoc:checkbox ').live('change', function(){
    if($(this).is(':checked')){
        var addresspicker=$(this).addresspicker();//alert('checked');
    } else {
         //I want to un initialize the addresspicker() on the input field
         var addresspicker=die($(this).addresspicker());//alert('un-checked');
    }
});

I am having some trouble with the ELSE part above. If the check box is unchecked, how can I stop the initialization so that no location is suggested?

  • 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-06-17T17:50:53+00:00Added an answer on June 17, 2026 at 5:50 pm

    Use unbind() function of jquery. It will remove the event. jquery bind

    You can see this post also for best usage best way to remove events

    below jquery 1.7

    $('#yourDomElement').unbind('click');
    

    jquery 1.7+

    $('#yourDomElement').off('click');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the following code snippets, I'm trying to get the text value which has
I'm using the following config: ActionMailer::Base.smtp_settings = { :address => smtp.gmail.com, :port => 587,
I am using the following method to reverse geocode a google maps latlng: [GClientGeocoder.getLocations(address:String,
Following up to Regular expression to match hostname or IP Address? and using Restrictions
Using following code I try to get updated list of checkbuttons' corresponding text values,
I am validating an email address using the following regex var regex=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; Now the
I'm using the following lines of JavaScript to validate an input as a valid
I am binding a listbox with contacts address using following xaml code <ListBox Name=ContactResultsDataLINQ
I'm trying to split a IP address like 127.0.0.1 from a file: using following
I'm using following code to get client IP address for a JAX-WS one-way method

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.