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 4259776
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:49:50+00:00 2026-05-21T05:49:50+00:00

See I have been creating a Country selector. And in my previous question –

  • 0

See I have been creating a Country selector. And in my previous question – dampe (accepted), jammon, Jani Hartikainen, prodigitalson helped me a lot! They provided me a code that was working in my jsFiddle but when transferred it to my real html page , I guess it is not working because when I select any Country (Element type a/link and classed country_link) my input (classed country_input) value does not changes to that country! I don’t know what is getting wrong with my code, so I thought to you ask for help from you guys. Can anyone help me out. (Below is my problem’s jsFiddle page!)

Problem Page

THANKS IN ADVANCE

  • 1 1 Answer
  • 2 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-21T05:49:51+00:00Added an answer on May 21, 2026 at 5:49 am

    The problem is that you country-selectors gets hidden away BEFORE it assigns the value to the element and in such case javascript dosen’t ‘see’ the object you are trying to get the value from.

    In other words: you have to hide the country list AFTER you have taken the value from the link as such:

     $(".country_link").click(function(){
           $('input.country_input').val($(this).text());
            $('div.country_selecter').hide(); //this action was on your blur event, whcih basicly was triggered as soon as you blured ou
    
                                });
    

    Edit: I also updated your fiddle code

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

Sidebar

Related Questions

Hello Guys! See I have been creating a code powered with ajax but it
Is it possible to see which files have been changed whenever an change-event is
I have been trying to check my arraylist to see if an object already
I have been coming across these two words more often but i didn't see
I have been looking at the source code of raphael.js and I see a
I have been working on a Java game and I recently wanted to see
I have been looking over this code for the past hour, I cant see
Alright so I have been looking around (on SO and Google) to see if
I have an SVG slider that I've been working on ... please see it
I see that this has been asked many times. But, unfortunately I have not

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.