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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:01:28+00:00 2026-05-15T14:01:28+00:00

Perhaps my last question (now deleted) was misunderstood so I’m reposting it with more

  • 0

Perhaps my last question (now deleted) was misunderstood so I’m reposting it with more clarity this time:

jQuery(UI):

$("#tabs").tabs({
   select: function(event, ui) { 
        alert(ui.panel.id);
        $('input[name=myinput], textarea[name=myinput]').attr('disabled', true); 
        $('input[name=myinput].' + ui.panel.id + ', textarea[name=myinput].' + ui.panel.id).removeAttr('disabled'); 
        $('input[name=source]').val(ui.panel.id);
   }
});

HTML:

<div id='tabs'>
    <ul>
        <li><a href="#direct">Direct input</a></li>
        <li><a href="#files">File upload</a></li>
        <li><a href="#uri">URI</a></li>
    </ul>
    <div id="direct">
        <textarea name='myinput' class='direct'></textarea>
    </div>
    <div id="file">
       <input type='file' name='myinput' class='file' />
    </div>
    <div id="uri">
       <input type='text' name='myinput' class='uri' />
    </div>
</div>
<input type='hidden' name='source' value='direct' />
<input type='submit' value='GO' />

I don’t quite understand what the jQuery is doing with the input. I want to use regular jQuery and avoid the “jQueryUI” tabs so its important that I understand what happening with the input to I can reproduce the same effect when I use regular jQuery.
Hope I’m making sense.

Thanks for your help!

  • 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-15T14:01:28+00:00Added an answer on May 15, 2026 at 2:01 pm

    When the select function is called:

    $('input[name=myinput], textarea[name=myinput]').attr('disabled', true);
    

    Find all input and textarea elements named myinput and disable them.

    $('input[name=myinput].' + ui.panel.id + ', textarea[name=myinput].' + ui.panel.id).removeAttr('disabled');
    

    Find any input elements and textarea elements with the name myinput and the class that matches the value of the ui.panel.id property and enable them.

    $('input[name=source]').val(ui.panel.id);
    

    Find the input element (or elements, but I bet there’s only one) with the name source and set its value to the value of the ui.panel.id property.

    E.g.: Disable all of the myinput input and textarea elements except the one matching the ui.panel.id property according to its class, and set the value of the input named source to that property, presumably to keep track of which inputs are enabled / which tab is showing.

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

Sidebar

Related Questions

Perhaps this is a naive question. In my understanding, ASP.NET MVC cannot work with
Perhaps my question is similar in nature to this one: Do you use design
This is probably going to be more of a discussion or hypothetical question, but
I asked this kind of question before, but didn't receive any good answers, perhaps
My meta-question would be How do I ask this question intelligibly? but perhaps an
Perhaps I am not asking or searching for this correctly: I want to have
NOTE: This is a long question. I've explained all the 'basics' at the top
I half realize that this question is probably asked already, but I'm not familiar
This is a follow-on question to Is publishing/subscribing to events after UI rendering a
I am guessing this is a noob question so please bear with me. I

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.