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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:31:46+00:00 2026-06-07T11:31:46+00:00

I use two jQuery plugins on new project of mine: $(input[type=text].color).miniColors(); $(input[type=file], input[type=radio], input[type=checkbox],

  • 0

I use two jQuery plugins on new project of mine:

$("input[type=text].color").miniColors();
$("input[type=file], input[type=radio], input[type=checkbox], select").uniform();

In this project, I have multiple upload forms that are build dynamically with jQuery – I have a hidden container <div> with multiple form elements in it. Depending on the user choice needed elements are being added to the form with html() function.

User can switch between multiple types of form with tabs (Twitter Bootstrap).

I noticed that plugins are not working correctly on those form elements.

Is there any possibility to bind function to a form with live() function or is there any other way?

** Edit **
Form is being built with following function:

function buildForm(target)
{
    var form = $("#" + target);

    switch(target){
        case 'image':
            form.html($("#wrapper-title").html() + $("#wrapper-src").html());
            break;
        case 'generate':
            form.html($("#wrapper-title").html() + $("#wrapper-src").html() + $("#wrapper-generate").html());
            break;
        case 'video':
            form.html($("#wrapper-title").html() + $("#wrapper-url").html());
            break;
        case 'text':
            form.html($("#wrapper-title").html() + $("#wrapper-body").html());
            break;
    }
}

All elements are placed outside of the form and are moved between <form> tags while user changes the type of the form.

What does not work? For example, in Uniform plugin, the state of the radio/select buttons are not changed (graphic is not being changed).

Cheers!

  • 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-07T11:31:48+00:00Added an answer on June 7, 2026 at 11:31 am

    Initialize the plugins inside of the buildForm method after the switch/case statement only targeting the newly added form.

    function buildForm(target)
    {
        var form = $("#" + target);
    
        switch(target){
            case 'image':
                form.html($("#wrapper-title").html() + $("#wrapper-src").html());
                break;
            case 'generate':
                form.html($("#wrapper-title").html() + $("#wrapper-src").html() + $("#wrapper-generate").html());
                break;
            case 'video':
                form.html($("#wrapper-title").html() + $("#wrapper-url").html());
                break;
            case 'text':
                form.html($("#wrapper-title").html() + $("#wrapper-body").html());
                break;
        }
        $("input[type=text].color", form).miniColors();
        $("input[type=file], input[type=radio], input[type=checkbox], select", form).uniform();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i use two jquery plugins in combination. a text resizer and a tooltip. after
I'm new with javascript, so i'm trying to use two jQuery plugins, together they
I am using two wordpress plugins WP-Cycle and NextGen-Gallery. Both these plugins use jquery
I have two jQuery plugins that use the same function name (bind), can i
Assume we use jQuery.ajax() to POST data with two parameters, game_id and player_id .
I have two forms on my website, and I use jQuery to submit them,
I use simple javascripts, jquery library and many plugins , should i make one
One way is to use these two plugins to create google+ style photo display
I took a snapshot of the jquery.js file and jquery-ui files that I use
I'm trying to use both the BlockUI and jQuery Tools Tooltip plugins on 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.