Toggle in javascript - Div toggle possibility
<p>What i want is that making an div toggle. Visible it or not.</p>

<p>this is my div</p>

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

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

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

<p>Is there a way to write above code a id ? </p>
