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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:52:05+00:00 2026-05-31T20:52:05+00:00

What i want is that making an div toggle. Visible it or not. this

  • 0

What i want is that making an div toggle. Visible it or not.

this is my div

<div id="kullanici_ara" style="display:none;">
<form action="kullanicilar.php" method="get">
<label>Aramak istediğiniz kullanıcının adını giriniz</label><br />
<input type="text" name="ara"/>
<input type="radio" name="type" value="nick" checked="checked">Pasaj Adı</input>
<input type="radio" name="type" value="id" />Id</input>
<input type="radio" name="type" value="name" />Ad-Soyad</input>
<input type="radio" name="type" value="email" />E-posta</input>
<input type="radio" name="type" value="city" />Şehir</input>
<br /><br />
<label>Kullanıcıları puanlarına göre büyükten->küçüğe sıralamak için seçiniz.</label><br />
<input type="checkbox" value="puan" name="puansort"><br /><br />
<input type="submit" value="Ara" />
</form><br /><br />
</div>

Is there a way to toggle div according to id ? I mean a have a code like that

<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
    $("div").toggle();
  });
});
</script>

Is there a way to write above code a id ?

  • 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-31T20:52:06+00:00Added an answer on May 31, 2026 at 8:52 pm

    Your answer is:

    <script type="text/javascript">
    $(document).ready(function(){
      $("button").click(function(){
        $("#kullanici_ara").toggle();
      });
    });
    </script>
    

    See: Jsfiddle

    Keep in mind that every button will now toggle the div with id #kullanici_ara. Maybe you want to specify a certain button with an id. Something like:

    <button id='clickbutton'>Toggle div</button>
    

    And:

    <script type="text/javascript">
    $(document).ready(function(){
      $("#clickbutton").click(function(){
        $("#kullanici_ara").toggle();
      });
    });
    </script>
    

    See: ID-selector

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

Sidebar

Related Questions

I'm making a navigation bar like Twitter, but I want that one div inside
Im trying to toggle the div to make it visible/hidden. Im making a leader
i'm making app that the main page include TableView but i want when i
I am making a POST to another php file that I want to render
I'm making a small system for personal use on that I want to handle
I m making a Shooting game, in that I want an array of ImageViews
Let's say I want to build a REST service for making notes that looks
I am making an application that I dont want it to close. So on
I am making an application in silverlight 3.0 In that application i want to
Basically I have a div that I want at 100% width. However, I also

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.