---
title: "Discussion on \"Column Filter Table with htmx, Alpine-js, and Django\" | Hashnode"
description: "Discussion on \"Column Filter Table with htmx, Alpine-js, and Django\". Have you ever needed to create a table where you need to filter between multiple columns? Maybe you've tried using a standard table with a single search/filter input field, but it didn't quite work the way you wanted. \nThis article will show how I bu..."
url: "https://hashnode.com/posts/column-filter-table-with-htmx-alpine-js-and-django/62fda95d0cfd6de8c7d79920"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Column Filter Table with htmx, Alpine-js, and Django](https://enzircle.com/column-filter-table-with-htmx-alpine-js-and-django?utm_source=hashnode&utm_medium=feed)

Have you ever needed to create a table where you need to filter between multiple columns? Maybe you've tried using a standard table with a single search/filter input field, but it didn't quite work the way you wanted. This article will show how I bu...

Aug 18, 2022 · 9 min read · enzircle.com  
Read the article

-   [#django](https://hashnode.com/tag/django)
-   [#python](https://hashnode.com/tag/python)
-   [#htmx](https://hashnode.com/tag/htmx)
-   [#alpinejs](https://hashnode.com/tag/alpinejs)

## Written by

[Joash Xu](https://hashnode.com/@joashxu)

@joashxu · Jakarta, Indonesia

  
[View profile](https://hashnode.com/@joashxu)

## Responses 2

Markdown supported · ⌘↵ to post

[federico gomar](https://hashnode.com/@fed988)

[Dec 5, 2022](https://hashnode.com/posts/column-filter-table-with-htmx-alpine-js-and-django/62fda95d0cfd6de8c7d79920/comment/638d844264b7288d8d8e67ea)

Hi,

Thanks for source. I have a problem with css in my project. When i change the .table-container td:nth-child(x), table width body change but not header and filter in the template "\_table\_col\_filter.html" .

thanks

[Sam Hausmann](https://hashnode.com/@sam146)

[Mar 11, 2023](https://hashnode.com/posts/column-filter-table-with-htmx-alpine-js-and-django/62fda95d0cfd6de8c7d79920/comment/638d844264b7288d8d8e67ea#reply-640cf5004fa31046e9fa3975)

Hello, same issue here. The rows with data in them aren't aligning with the headers. Any suggestions?

[federico gomar](https://hashnode.com/@fed988)

[Mar 12, 2023](https://hashnode.com/posts/column-filter-table-with-htmx-alpine-js-and-django/62fda95d0cfd6de8c7d79920/comment/638d844264b7288d8d8e67ea#reply-640e4850541e68535cd97f6e)

[Sam Hausmann](https://hashnode.com/@sam146) hi, for me,the problem came from the version of boostrap that I had used. boostrap 5 instead of 4

[Lucien Dada KYABU](https://hashnode.com/@dada406)

[Sep 29, 2022](https://hashnode.com/posts/column-filter-table-with-htmx-alpine-js-and-django/62fda95d0cfd6de8c7d79920/comment/6335e42be594fa4ba3b8cce5)

Hello Dear,

i am really impressed by this article of you and i was thinking about you sharing the source code of this article. and how to add another custom column with action buttons like edit delete and so on.

[Joash Xu](https://hashnode.com/@joashxu)

[Oct 5, 2022](https://hashnode.com/posts/column-filter-table-with-htmx-alpine-js-and-django/62fda95d0cfd6de8c7d79920/comment/6335e42be594fa4ba3b8cce5#reply-633d7f6412186eae2bef86bb)

You can look at the source code at the following GitHub repo: [github.com/joashxu/dj-htmx-fun.](https://github.com/joashxu/dj-htmx-fun.)

Hope it helps.

[Lucien Dada KYABU](https://hashnode.com/@dada406)

[Oct 7, 2022](https://hashnode.com/posts/column-filter-table-with-htmx-alpine-js-and-django/62fda95d0cfd6de8c7d79920/comment/6335e42be594fa4ba3b8cce5#reply-63406b0e6971ffceb9820857)

Thank You Dear [Joash Xu](https://hashnode.com/@joashxu)
