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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:20:58+00:00 2026-06-01T19:20:58+00:00

I am using the mootools framework to add text inputs to a form. Here

  • 0

I am using the mootools framework to add text inputs to a form. Here is my code:

http://jsfiddle.net/dazaweb/wjMJt/2/

As you can see, the input field appears for a sec, then disappears. Any ideas on why this is happening?

Thanks

  • 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-01T19:21:00+00:00Added an answer on June 1, 2026 at 7:21 pm

    You are clicking on a submit button which will POST the form. Change the input type to button and it will work. Or you can prevent the default behaivor if you still want to use a submit button.

    Here is a working link with a button insteed of submit:

    http://jsfiddle.net/wjMJt/3/

    You can also prevent the default behavoir by cancel the bubbling.

    Just add e.stop(); inside your function, and pass the event argument as a variable named e like this:

    $('btnAddOption').addEvent('click', function(e) {
    

    Example:

    http://jsfiddle.net/wjMJt/6/

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

Sidebar

Related Questions

I am using this sliding top panel using mootools (for orientation, the code is
I have a jQuery code, but need it working by using Mootools: if (
I'm starting with the Mootools framework. Since I want the code to be reusable,
Although I am using the Zend framework, MooTools JS library and my questions revolves
I am developing one site using joomla 1.5 and mootools 1.1 for js framework,
Styling form elements using css can be problematic since every browser render tag in
I'm using mootools 1.4.3 for basic class inheritance. I'm actually converting some code from
I am using mootools library to call webservices in an asp.net application. one of
Due to the problem I posted here Mootools when using For(...in Array) problem about
I'm using MooTools. I have a ul element: <ul id=alerts></ul> And I can access

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.