织梦切换栏目id搜索写法

<form  name="formsearch" action="{dede:global.cfg_cmsurl/}/plus/search.php">
            <input type="hidden" name="kwtype" value="0" />
            <input type="hidden" name="typeid" value="" class="typid">
            <input  name="q" type="text" class="fl input_search" placeholder="搜索你要找的" value="" >
            <div class="searchFilter fl">
                  <p class="filter">全部<i></i></p>
                  <div class="filterOption"><a href="javascript:;" class="filterItem" data-id="1">特效库<i></i></a><a href="javascript:;" class="filterItem" data-id="2">模板库<i></i></a><a href="javascript:;" class="filterItem" data-id="3">PSD库</a><a href="javascript:;" class="filterItem" data-id="9">教程库</a></div>
                </div>
            <button type="submit" class="fl sub_search">搜   索</button>
 </form>
然后配合js给<input type="hidden" name="typeid" value="" class="typid">  给value传值

由素材58(zuola.net)提供