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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:54:08+00:00 2026-05-26T10:54:08+00:00

When I try to click into the generated input-field nothing happens. The input even

  • 0

When I try to click into the generated input-field nothing happens.
The input even lost its focus() and the blur()-event is called.
When I move the cursor with the arrow keys, everything is okay.

An example with the error: http://jsbin.com/atinad/edit
You have to click on the blue square.

I’ve built a menu with links:

<div id="lists">  
    <a href="#" id="list1" rel="1" name="Test #1" class="list  active">
        <span class="text">Test #1</span>
        <span  class="delete"></span>
        <span  class="edit"></span>
    </a>  
    <a href="#" id="list2" rel="2" name="Test #2"  class="list">
        <span class="text">Test #2</span>
        <span  class="delete"></span>
        <span  class="edit"></span>
    </a>
</div>

Clicking on the link set it to an active state.

function InitializeLists() {
    $('div#lists a').each(function() {
        $(this).click(function(event) {
            event.preventDefault();

            $('div#lists a').removeClass("active");
            $(this).addClass("active");

            list.id = $(this).attr("rel");
            list.name = $(this).attr("name");
        });

        $(this).children("span.edit").click(function() {
            list.id = $(this).parent("a").attr("rel");
            list.name = $(this).parent("a").attr("name");
            list.showUpdateNameForm();
        });
        $(this).children("span.delete").click(function() {
            $("#dialog-list-delete").dialog("option", "listid", $(this).parent("a").attr('rel'));
            $("#dialog-list-delete").children('em').html($(this).parent('a').children('span.text').html());
            $("#dialog-list-delete").dialog("open");
            return false;
        });
    });
}

The showUpdateNameForm-function:

list.showUpdateNameForm = function() {
    if (list.name != undefined && list.id != undefined && list.id > 0) {
        var listElement = $('a#list' + list.id);
        var listName = unescape(list.name);

        listElement.children("span.text,span.edit").hide();

        var listElementSave = document.createElement("span");
        $(listElementSave).addClass("save");
        listElement.append($(listElementSave));

        var listElementInput = document.createElement("input");
        $(listElementInput).attr("type", "text").attr("maxlength", 30).val(listName);
        listElement.find("span.text").before($(listElementInput));
        $(listElementInput).focus();
    }
};

The input field is shown correctly and it contains the name of the list.
But I cannot click on it with my mouse. Nothing happens.

First I thought it’s because of the click-event on the <a>-Tag. So I removed only this click-event, but the error still occured. I tried some other stupid things, but nothing worked.
I don’t understand what the problem is.

Can someone reproduce it or does someone see my mistakes?

  • 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-26T10:54:08+00:00Added an answer on May 26, 2026 at 10:54 am

    As zdrsh mentioned, it’s a firefox problem.

    I could not solve the problem without changing the structure.
    Now I’m using <div>-Tags instead of <a>-Tags and everything is okay.

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

Sidebar

Related Questions

I'm using tomcat 6.0 and struts2. When I try to click on a link
Whenever I try to install a Click Once application, I always get a 404
Basically, I want to translate the following into Seaside Smalltalk: $(.myDiv).bind('click', function(e) { console.log(e);
I've been struggling with passing Java objects from Java through JSNI (gwt-exporter generated) into
I'm running into a bit of an issue when I try to return a
I am try the Google Maps API and run into a little problem. Look
If you paste the following into the url bar in chrome and try to
When I try to replace the the inputed morse code into text I get
When I try to cick on cell in my table view rather than take
Try loading this normal .jpg file in Internet Explorer 6.0. I get an error

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.