jQuery multiple select show/hide

前端 未结 5 1466
青春惊慌失措
青春惊慌失措 2021-01-20 05:39

I have a table with language translation. I\'m trying to create a script that will hide multiple language columns. The problem is that it only hide one field at a time. I ca

5条回答
  •  时光说笑
    2021-01-20 06:38

    $(document).ready(function () {
    $(".hide" ).change(function() {
    var str = [];
    $(".hide option:selected").each(function() {
    str.push($( this ).val());
    });
    $('[class^=cell]').show();
    for(i=0; i

    Demo:

    http://jsfiddle.net/LAZeX/

提交回复
热议问题