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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:19:18+00:00 2026-05-20T23:19:18+00:00

I have the following script — $(document).ready(function () { $(div.settings_frame_tabs_frame).(function () { $(div.settings_frame_tabs_heading ,this).click(function

  • 0

I have the following script —

   $(document).ready(function () {

    $("div.settings_frame_tabs_frame").(function () {

        $("div.settings_frame_tabs_heading" ,this).click(function () {

            $("div.settings_frame_tabs_content" ,this).animate({
              height : 'toggle'
            }, 400, 'linear', function() { });

        });

    });

  });

And following HTML code —

  <div id="settings_frame_email_id_update" class="settings_frame_tabs_frame">
    <div class="settings_frame_tabs_heading">Email ID</div>
    <div class="settings_frame_tabs_content">
          <form action="<?php echo PATH; ?>domail_res/scripts/php/functions/settings_func.php?update=email_id" method="POST">
                 <table width="100%">
                         <tbody>
                                 <tr>
                                      <td align="left" width="35%">
                                           Enter your new <b>Email ID</b>
                                      </td>
                                      <td align="left">
                                           <input type="textbox" class="settings_frame_tabs_textbox" name="settings_email_id" />
                                      </td>
                                 </tr>
                                 <tr>
                                      <td></td>
                                      <td align="right">
                                           <input type="submit" class="settings_frame_tabs_submit_btn" value="Update" />
                                      </td>
                                 </tr>
                         </tbody>
                 </table>
          </form>
    </div>

Here is the link of the Jsfiddle with CSS.
http://jsfiddle.net/EDxWh/
Anyone have any ideas! Please let me know if you got any ideas with you, please.

Thanks in advance!

http://jsfiddle.net/ye6tX/ -> With the JS/HTML

  • 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-20T23:19:19+00:00Added an answer on May 20, 2026 at 11:19 pm

    Syntax error…. the console should have told you that:

     $("div.settings_frame_tabs_frame").(function () {
     //                          -------^
    

    Here you go:

    $("div.settings_frame_tabs_frame").each(function () {
        $("div.settings_frame_tabs_heading", this).click(function () {
            $(this).next("div.settings_frame_tabs_content").animate({
              height : 'toggle'
            }, 400, 'linear');
        });
    });
    

    each might not be necessary, depending on how many .settings_frame_tabs_frame elements exist. You could also do:

     $("div.settings_frame_tabs_frame div.settings_frame_tabs_heading")
         .click(function () {...});
    

    The other problem was that div.settings_frame_tabs_content is not a child of div.settings_frame_tabs_heading but a sibling, hence you have to use $(this).next().

    Working DEMO

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

Sidebar

Related Questions

i have following script <script> $(document).ready(function(){ $(div.mover).hover(function () { $(div.hide1).fadeTo(slow, 0.33); $(div.hide1).fadeTo(slow, 1); },function(){
I have the following script which works kind of... $(document).ready(function(){ // add or remove
I have the following script: $('#element_1').live('click', function() { function_1(this) }); function function_1(that) { that
I have the following script: $("tr.member_profile_comment_row_frame").mouseover(function () { $(this.element."img.member_profile_comment_show_delete_button").show(); }); $("tr.member_profile_comment_row_frame").mouseout(function () { $(this.element."img.member_profile_comment_show_delete_button").hide();
I have the following script, where the first and third document.writeline are static and
I have put together the following mootools script window.addEvent('domready', function() { var shouts =
I have the following script in my homepage $(function () { // same as
I have seen the following script from jQuery Validation Plugin. http://docs.jquery.com/Plugins/Validation/Methods/email email: function(value, element)
I have the following script which I am using in an intranet environment: function
I have the following script which I need to combine together somehow. Each function

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.