asp.net jquery örnek (selectmenu)




*gerekli jquery linkleri masterpage de olmalıdır.
*kod:
<div class="div_SelectMenu">
<fieldset>
<label for="speed">Select a speed</label>
<select name="speed" id="Normal">
<option>Slower</option>
<option>Slow</option>
<option selected="selected">Medium</option>
<option>Fast</option>
<option>Faster</option>
</select>

<label for="files">Select a file</label>
<select name="files" id="Gruplu">
<optgroup label="Scripts">
<option value="jquery">jQuery.js</option>
<option value="jqueryui">ui.jQuery.js</option>
</optgroup>
<optgroup label="Other files">
<option value="somefile">Some unknown file</option>
<option value="someotherfile">Some other file with a very long option text</option>
</optgroup>
</select>
</fieldset>
</div>
<script>
$(function () {
$("#Normal").selectmenu();
$("#Gruplu").selectmenu();
});
</script>
  <style>
    fieldset {
      border: 0;
    }
    label {
      display: block;
      margin: 30px 0 0 0;
    }
    select {
      width: 200px;
    }
    .overflow {
      height: 200px;
    }
  </style>

Yorumlar