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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:04:26+00:00 2026-05-17T15:04:26+00:00

I am trying out jQuery-UI drag-drop feature. I was able to easily convert a

  • 0

I am trying out jQuery-UI drag-drop feature.
I was able to easily convert a div into a droppable but making a text box a Droppable doesn’t work.

jQuery('input[type=text]:visible').droppable({
    drop: function (e, ui){
        console.log('dropping',ui); //--> this never gets called
     jQuery(this).val(jQuery(ui.helper).text());
}
});

Is it the case that the default browser behavior prevents text fields and text areas from being droppables?

EDIT:
It doesn’t work only when the input field is a part of a draggable..

http://jsfiddle.net/guNTP/4/

<span>hello world!<input></span>

$("input").droppable({
  drop: function(event, ui) {
    alert(ui.draggable.text());
  }
});

$("span").draggable({helper:function(){
    return jQuery("<span>hello</span>");
}});
  • 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-17T15:04:27+00:00Added an answer on May 17, 2026 at 3:04 pm

    Yes, it can be: http://jsfiddle.net/guNTP/

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

Sidebar

Related Questions

hope can help, trying out Jquery clone which seems to work, but I get
I am trying out the debugger built into Zend studio . It seems great!
I am trying out moq and I'm running into a problem with the following
I'm trying to create a system where you can drag and resize divs (jquery
I'm trying out jquery as a javascript library over prototype. Now when it comes
I was trying out example jQuery examples and to my surprise, I got an
I am trying out some globalization in an asp.net mvc2 application but can't get
I'm pulling my hair out trying to get a jQuery script working that will
I am trying to figure out how to invoke a jquery grid from client
I've been trying to figure out how to work this jQuery Form plugin to

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.