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

The Archive Base Latest Questions

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

I have this site and I try to add a contact form in jQuery

  • 0

I have this site and I try to add a contact form in jQuery called facebox, and when I add this code for the contact form work with style the slider and style in menu doesn’t work correctly:

<script type="text/javascript" src="formulario/jquery.js"></script> 

How can I resolve this so the contact form would work fine?

Problem explanation:

Code of the site:

<script src="javascripts/home_packaged.js" type="text/javascript"></script>
<link href="stylesheets/home_packaged.css" media="screen" rel="stylesheet" type="text/css" />
 <!-- THIS IS MY ORIGINAL LIBRARIES JQUERY CODE  -->
        <script type="text/javascript" src="javascripts/jquery.easing.1.3.js"></script>
         <script type="text/javascript" src="javascripts/jquery.min.js"></script>
         <script type="text/javascript" src="javascripts/jquery.selectbox-0.5.js"></script>
         <script type="text/javascript" src="javascripts/jquery.colorbox.js"></script>

        <!-- DDSlider jQuery Plugin - VERY IMPORTANT -->
        <script type="text/javascript" src="javascripts/jquery.DDSlider.min.js"></script>

        <!-- Let's start the slider -->
        <script type="text/javascript">

        //triggers the slider
        $(document).ready(function() {
            $('#Items1').selectbox();
             $('#Items2').selectbox();
              $('#Items3').selectbox();
               $('#Items4').selectbox();
                $('#Items5').selectbox();
                 $('#Items6').selectbox();
                  $('#Items7').selectbox();
                   $('#Items8').selectbox();
                    $('#Items9').selectbox();
                     $('#Items10').selectbox();
                     $(".example5").colorbox();
            $('#yourSliderId').DDSlider({

                nextSlide: '.slider_arrow_right',
                prevSlide: '.slider_arrow_left',
                selector: '.slider_selector'

                });

        });


        </script>

<script type="text/javascript">$(document).ready(function(){jQuery.ajaxSetup({'beforeSend':function(xhr){xhr.setRequestHeader("Accept","text/javascript")}})
$("#q").autocomplete({url:'/categories.js',mustMatch:false});$("#q").autocomplete('/categories',function(event,data,formatted){if(data)
document.location.href='/categories/'+data[1];});});</script>
<script type="text/javascript">$(document).ready(function(){$('img.menu_class').click(function(){$('ul.the_menu2').hide();$('ul.the_menu3').hide();$('ul.the_menu').slideToggle('medium');});});$(document).ready(function(){$('a.menu_class').click(function(){$('ul.the_menu2').hide();$('ul.the_menu3').hide();$('ul.the_menu').slideToggle('medium');});});$(document).ready(function(){$('img.menu_class2').click(function(){$('ul.the_menu').hide();$('ul.the_menu3').hide();$('ul.the_menu2').slideToggle('medium');});});$(document).ready(function(){$('img.menu_class3').click(function(){$('ul.the_menu').hide();$('ul.the_menu2').hide();$('ul.the_menu3').slideToggle('medium');});});</script>
<script type="text/javascript">(function($){$.fn.extend({customStyle:function(options){if(!$.browser.msie||($.browser.msie&&$.browser.version>6)){return this.each(function(){var currentSelected=$(this).find(':selected');$(this).after('<span class="customStyleSelectBox"><span class="customStyleSelectBoxInner">'+currentSelected.text()+'</span></span>').css({position:'absolute',opacity:0,fontSize:$(this).next().css('font-size')});var selectBoxSpan=$(this).next();var selectBoxWidth=parseInt($(this).width())-parseInt(selectBoxSpan.css('padding-left'))-parseInt(selectBoxSpan.css('padding-right'));var selectBoxSpanInner=selectBoxSpan.find(':first-child');selectBoxSpan.css({display:'inline-block'});selectBoxSpanInner.css({width:selectBoxWidth,display:'inline-block'});var selectBoxHeight=parseInt(selectBoxSpan.height())+parseInt(selectBoxSpan.css('padding-top'))+parseInt(selectBoxSpan.css('padding-bottom'));$(this).height(selectBoxHeight).change(function(){selectBoxSpanInner.text($(this).find(':selected').text()).parent().addClass('changed');});});}}});})(jQuery);$(function(){$('select.styled').customStyle();});</script>
<script type="text/javascript">jQuery(document).ready(function(){jQuery('#mycarousel').jcarousel();});</script>
<script type="text/javascript">$(document).ready(function(){$('#slider1').s3Slider({timeOut:4000});});</script>
<script type="text/javascript">$(document).ready(function()
{$(".tab_content-n").hide();$("ul.tabs-n li:first").addClass("active").show();$(".tab_content-n:first").show();$("ul.tabs-n li").click(function()
{$("ul.tabs-n li").removeClass("active");$(this).addClass("active");$(".tab_content-n").hide();var activeTab=$(this).find("a").attr("href");$(activeTab).fadeIn();return false;});});</script>


<!-- then I ADD THIS CODE FOR ADD A CONTACT FORM AND THE ERRORS BEGIN  -->

<script type="text/javascript" src="formulario/jquery.js"></script>
<script type="text/javascript" src="formulario/jquery.form.js"></script>
<script src="formulario/facebox/facebox.js" type="text/javascript"></script> 
<script type="text/javascript">
$(document).ready(function(){
     $(".contimage").hover(function() {
            $(this).animate({
                opacity:1
            },200);
        }, function() {
            $(this).animate({
                opacity:0.8
            },200);
        });
        $('#submitform').ajaxForm({
            target: '#error',
            success: function() {
            $('#error').fadeIn('slow');
            }
    });
$('a[rel*=facebox]').facebox()
     }); 
</script>

Also available here: http://pastebin.com/vQrSx0GU

  • 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-25T14:07:16+00:00Added an answer on May 25, 2026 at 2:07 pm

    It looks like your jquery code is not added until much after your jQuery plugins are loaded.
    This:

    <script type="text/javascript" src="formulario/jquery.js"></script>
    

    Should come before

    <script type="text/javascript" src="javascripts/jquery.DDSlider.min.js"></script>
    

    Also, I would suggest adding a class to each of selectbox elements, maybe “selectBoxItems” and then operate on the class.

            $('#Items1').selectbox();
                $('#Items2').selectbox();
                $('#Items3').selectbox();
                $('#Items4').selectbox();
                $('#Items5').selectbox();
                $('#Items6').selectbox();
                $('#Items7').selectbox();
                $('#Items8').selectbox();
                $('#Items9').selectbox();
                $('#Items10').selectbox();
                $(".example5").colorbox();
            $('#yourSliderId').DDSlider({
                nextSlide: '.slider_arrow_right',
                prevSlide: '.slider_arrow_left',
                selector: '.slider_selector'
            });
        });
    

    This would be changed to

    $(".selectBoxItems").selectbox();
    $('#yourSliderId').DDSlider({
        nextSlide: '.slider_arrow_right',
        prevSlide: '.slider_arrow_left',
        selector: '.slider_selector'
    });
    

    Could you post the code specific to the problem, both HTML and JS here (preferably formatted)?

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

Sidebar

Related Questions

i have been to this site to try and get my car movement sorted
For Chrome I have this code : List<String> capabilityValue = new List<string>(); capabilityValue.Add(--start-maximized); capabilities
I have this membership site setup on my local machine using the ASP.NET membership
I have searched this site and Google and even though the idea is pretty
though I have visited this site many times, this is my first question. After
Preface: I am sure this is incredibly simple, but I have searched this site
Say I have this url: http://site.example/dir/ In this folder I have these files: test.ascx.cs
I've been trying for hours and have read what this site and the internet
Ok.. I have looked through this site and just can't seem to find the
What I want to accomplish is the effect I have seen in this site

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.