Teil von SELFHTML Forum Teil von SELFHTML Forumsarchiv Teil von 2010 Teil von Januar

SELFHTML Forumsarchiv
jQuery SelectBox klappt nicht

Informationsseite
  1. Seite (JAVASCRIPT) jQuery SelectBox klappt nicht von juan90419, 31. 01. 2010, 11:47
nach unten

jQuery SelectBox klappt nicht

Die folgende Nachricht zum Thema stammt von: juan90419, 31. 01. 2010, 11:47

Hallo,

ich möchte eine DropDown (search-SelectBox) durch eine jquery-selectbox ablösen.

der zur Zeit eingetragene Code sieht wie folgt aus:

<select name="cid" id="search-selectbox-custom" class="jquery-selectbox jquery-custom-selectboxes-replaced">
        <option value="0">- {$lang.all_categories} -</option>
        {foreach from=0|fn_get_subcategories item="cat"}
        <option value="{$cat.category_id}" {if $mode == "search" && $smarty.request.cid == $cat.category_id}selected="selected"{elseif $smarty.request.category_id == $cat.category_id}selected="selected"{/if}>{$cat.category|escape:html}</option>
        {/foreach}
</select>


als Beispiel habe ich den unten aufgeführten Code gefunden,
den ich aber in meine search.tpl datei nicht einbinden kann,
da sich das Feld zur Auswahl dann nicht mehr öffnen lässt.

<div class="jquery-selectbox jquery-custom-selectboxes-replaced" style="width: 150px;">
                <div class="jquery-selectbox-moreButton">
        </div>
        <div class="jquery-selectbox-list jquery-custom-selectboxes-replaced-list" style="width: 145px; height: 9em;">
                <span class="jquery-selectbox-item value-0 item-0">- All categories -</span>
                <span class="jquery-selectbox-item value-93 item-1">Books</span>
                <span class="jquery-selectbox-item value-85 item-2">Computers</span>
                <span class="jquery-selectbox-item value-113 item-3">Music</span>
                <span class="jquery-selectbox-item value-87 item-4">Apparel</span>
                <span class="jquery-selectbox-item value-111 item-5">DVD</span>
        <span class="jquery-selectbox-item value-95 item-6">Audio &amp; Video</span>
                <span class="jquery-selectbox-item value-119 item-7">Cell Phones</span>
                <span class="jquery-selectbox-item value-129 item-8">Sports &amp; Outdoors</span>
        </div>
        <span class="jquery-selectbox-currentItem">- All categories -</span>
        <select id="search-selectbox-custom" class="search-selectbox" name="cid" style="display: none;">
        <option value="0">- All categories -</option>
                <option value="93">Books</option>
                <option value="85">Computers</option>
                <option value="113">Music</option>
                <option value="87">Apparel</option>
                <option value="111">DVD</option>
                <option value="95">Audio &amp; Video</option>
                <option value="119">Cell Phones</option>
                <option value="129">Sports &amp; Outdoors</option>
        </select>
</div>


Wäre für jede Hilfe Dankbar.

Grüße Juan

nach oben
Teil von SELFHTML Forum Teil von SELFHTML Forumsarchiv Teil von 2010 Teil von Januar

© 1998-2008 Seite Impressum, Software: Classic Forum