Results 1 to 2 of 2

Thread: Filtre table using js

  1. #1
    Join Date
    Mar 2019
    Location
    Romania
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Filtre table using js

    Hi, I am a newcomer and I need some help with a js code.
    I want to create a tabel filtre like https://www.w3schools.com/howto/howt...lter_table.asp .
    The script works almost perfect.
    Am on the first 3 columns the filtre work perfect, what I want more is that on the last 2 columns when you search for a dimension or code I want to display only the matched value, not all of product values.
    To explain the table a bit:
    Is an 5 columns table, where some of the first 3 columns have rowspan attribute because is same product but with different dimensions and codes.
    If I search on dimension input the value "70" the script output all the products where is found the value 70 with all dimmensions, but i want to display only the value requested and hide other values that not meet the request ( on this case is showed 170, and 210 values, but i need to display only the 170 values.)
    I put the link for the code here: https://jsfiddle.net/mitza_dragan/vg9e0fkr/3/

    Thanks.

  2. #2
    Join Date
    Mar 2011
    Posts
    2,005
    Thanks
    59
    Thanked 107 Times in 105 Posts
    Blog Entries
    4

    Default

    Hey mitza.dragan. Unfortunately your post got caught up in our spam filter and that's why it wasn't visible.
    I've fixed that now and hopefully you can find an answer to your question.

    fletch

Similar Threads

  1. Store other mysql table data into another table.
    By udaybabu in forum MySQL and other databases
    Replies: 0
    Last Post: 12-29-2014, 07:12 AM
  2. Replies: 1
    Last Post: 03-20-2014, 11:22 AM
  3. Replies: 15
    Last Post: 05-26-2013, 09:34 PM
  4. copy records from table to table in MySQL?
    By nephish in forum Other
    Replies: 0
    Last Post: 07-29-2005, 07:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •