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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:24:46+00:00 2026-05-26T23:24:46+00:00

Please look at this fiddle: http://jsfiddle.net/uNbYu/1/ When the submit button is pressed once, It

  • 0

Please look at this fiddle:

http://jsfiddle.net/uNbYu/1/

When the submit button is pressed once, It removes the text edit for no apparent reason, but doesn’t do anything, but the second time, it does work when pressed, and goes to the page.

Please help me with what makes this code do that.

Thanks


HTML:

<b class = "edit" id = "fooo"> FOO </b>

JS:

$('b.edit').click(function() {
    $(this).hide().after('<form action = "foo.php" method = post><input hidden name = "field" type = "text" value = "' + this.id + '"/><input type="text" name = "period" class="editP" value="' + $(this).html() + '" /><input type = "submit" value = "Submit!!" /></form>');
    $('.editP').focus();
});
$('.editP').live('blur', function() {
    $(this).hide().prev('b.edit').html($(this).val()).show();
});
  • 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-26T23:24:47+00:00Added an answer on May 26, 2026 at 11:24 pm

    The problem is that the edit box loses focus before you manage to click the button thus changing the position so that you won’t hit the button.

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

Sidebar

Related Questions

Possible Duplicate: .prop() vs .attr() Please take a look at this fiddle: http://jsfiddle.net/DGzvP/ $(#test).prop({
Please take a look at this fiddle: http://jsfiddle.net/d3uc9/4/ I have a problem with this,
Please take a look at this fiddle: http://jsfiddle.net/hughbe/QYGcq/ As you can see, the label
please take a look at this fiddle : http://jsfiddle.net/cX47v/1 I am simply trying to
Please look at this fiddle: http://jsfiddle.net/DHts6/1/ Why does it say undefined, even though the
Please take a look at the fiddle: http://jsfiddle.net/Fyc5d/ Click a gray box, and you'll
Have a look at this fiddle: http://jsfiddle.net/h4VS7/ How do I make the yellow element
Please have a look at this screenshot alt text http://www.maclife.com/files/u18/Yep3-big.jpg I think these are
I'm new in Cocoa-Touch. Please look at this links: http://www.youtube.com/watch?v=Cab8CB_Lzbw http://www.youtube.com/watch?v=8c8KA1uZ9F8&feature=autoplay&list=PL6EFB1A1E5CAA7666&lf=results_main&playnext=1 I really want
Please have a look on this application http://itunes.apple.com/app/yowza-mobile-coupons/id312021877?mt=8 I just want to add custom

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.