Jump to content

Recommended Posts

Фильтр товаров с селектами. 

        {if $features}
        <form id="filter_form" method="get"  enctype="multipart/form-data">
              {foreach $features as $f}
                <div class="clearfix filter-cat-js open">
                  <div class="clearfix filter-header">
                    <div class="filter-expander">+/-</div>{$f->name}
                  <div class="filter-cat-slide">
                    <div class="filter-row">
                      <select class="feature_values" size="1" name="{$f->id}">
                      <option value="">Выбрать</option>
                      {foreach $f->options as $o}
                      <option value="{$o->value}" {if $fil[$f->id] == $o->value}selected{/if}>{$o->value}</option>
            <div class="filter-reset">
            <input type="submit" value="Показать" class="l-filter-reset" >
        function clicker(that) {
        var pick = that.options[that.selectedIndex].value;
        location.href = pick;
        function clickerb() {
        var pick = getElementsByName("feature[]").options[getElementsByName("feature[]").selectedIndex].value;


Можно это переделать под checkbox?


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...