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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:16:19+00:00 2026-05-24T08:16:19+00:00

The idea here is that the user can only have one selection for an

  • 0

The idea here is that the user can only have one selection for an input text box with an id of itemURL or have a selection made for the contentPageID. If the user starts typing a response into the itemURL it makes the contentPageID dropdown back to 0 for the value which is the – Select – for the text option. If the user then changes their mind and starts to make a selection with the dropdown then it clears out the value of the itemURL text field. I’ve used the following code however I’m using niceforms and it has to be maniupulated a little more and not sure how.

$('contentPageID, itemURL').change ( function () { 
if ( $(this).is ('select') ) {
    $('itemURL').val ("");
}
else {
    $('contentPageID').val (0);
}
} );

I do have a reset function that uses this to clear a dropdown but not sure how to work it into what I want to do.

$('select').each(function(){
                        var option = $('option:selected', this).html();
                        var niceselect = $(this).parents('dd').find('.NFSelectRight');
                        niceselect.html(option);
                        $(this).parents('dd')
                        .find('.NFSelectTarget a')
                        .removeClass('NFOptionActive')
                        .filter(':first').addClass('NFOptionActive');
                    }); 
  • 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-24T08:16:20+00:00Added an answer on May 24, 2026 at 8:16 am

    I’m using niceforms and it has to be maniupulated a little more and not sure how.

    my earlier code:

    function updateNiceformSelect() {
    
        $('select.NFhidden').each(function(){
            var option = $('option:selected', this).html();
            var niceselect = $(this).parents('dd').find('.NFSelectRight');
            niceselect.html(option);
    
            $(this).parents('dd')
                .find('.NFSelectTarget a')
                .removeClass('NFOptionActive')
                .each(function(){
                    if($(this).html() == option)
                        $(this).addClass('NFOptionActive');
                });
        });
    };
    

    It updates niceforms select to the value of underlying html select.

    http://jsfiddle.net/Jacek_FH/EwpXp/14/

    Niceform uses native inputs so they do not need to be handled separately

    /edit

    whole working code: http://jsfiddle.net/Jacek_FH/YvGDH/5/

    It was harder that I thought

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

Sidebar

Related Questions

I have no idea what this means. But here is the code that it
This is a weird one, but hopefully someone can give me an idea here.
i have a very simple table with only one row that has a uiswitch
I have a case where user can select multiple values in the list box
Here's the situation: I have a web-based ticket application, multiple users. One problem that
Here's the basic idea: There is a java window (main) that opens another java
Here's the idea, I'd like to make a service? that will look for a
Here is the idea: When the user wants to see /controller/action, then I want
I've created a graphing application that calls a web service. The user can zoom
Here is my situation: I have an application that use a configuration file. The

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.