---
title: "Comment by vamsi krishna hanumalasetty on \"Creating a Kanban Board with HTML, CSS & JavaScript\" | Hashnode"
description: "Hi, I wanted to add some other functionality like showing the number of task cards present in each stage dynamically after changing thier positions. Can you hel"
url: "https://hashnode.com/posts/creating-a-kanban-board-with-html-css-and-javascript/60c5ba2d1679ed6f51a27987/comment/61716edd0c5e175a1c612d65"
---

[Discussion](https://hashnode.com/posts/creating-a-kanban-board-with-html-css-and-javascript/60c5ba2d1679ed6f51a27987)

Comment [Creating a Kanban Board with HTML, CSS & JavaScript](https://hashnode.com/posts/creating-a-kanban-board-with-html-css-and-javascript/60c5ba2d1679ed6f51a27987)

[vamsi krishna hanumalasetty](https://hashnode.com/@Vamsikrishna45)

[Oct 21, 2021](https://hashnode.com/posts/creating-a-kanban-board-with-html-css-and-javascript/60c5ba2d1679ed6f51a27987/comment/61716edd0c5e175a1c612d65)

Hi, I wanted to add some other functionality like showing the number of task cards present in each stage dynamically after changing thier positions. Can you help me with easiest way to do that? I loved the way you explained.

[Nikhil](https://hashnode.com/@nikhilshahu)

[May 7, 2022](https://hashnode.com/posts/creating-a-kanban-board-with-html-css-and-javascript/60c5ba2d1679ed6f51a27987/comment/61716edd0c5e175a1c612d65#reply-6275f030dc122f5a4f21d07e)

Did you find a way to do that?

[vamsi krishna hanumalasetty](https://hashnode.com/@Vamsikrishna45)

[May 7, 2022](https://hashnode.com/posts/creating-a-kanban-board-with-html-css-and-javascript/60c5ba2d1679ed6f51a27987/comment/61716edd0c5e175a1c612d65#reply-6275f52bdc122f5a4f21d0e9)

[Nikhil](https://hashnode.com/@nikhilshahu) Yup, I did it, but i don't think it's optimal, evrytime we shift a task from one to another, I'm counting number of child elements in that div, i don't think it's optimal solution. Please, suggest if there is any other way.

[Nikhil](https://hashnode.com/@nikhilshahu)

[May 7, 2022](https://hashnode.com/posts/creating-a-kanban-board-with-html-css-and-javascript/60c5ba2d1679ed6f51a27987/comment/61716edd0c5e175a1c612d65#reply-62760549317fc95a74ca729f)

I tried many things but did get any solution. can u send me the one you have created? [vamsi krishna hanumalasetty](https://hashnode.com/@Vamsikrishna45)

[vamsi krishna hanumalasetty](https://hashnode.com/@Vamsikrishna45)

[May 7, 2022](https://hashnode.com/posts/creating-a-kanban-board-with-html-css-and-javascript/60c5ba2d1679ed6f51a27987/comment/61716edd0c5e175a1c612d65#reply-62761860317fc95a74ca74ef)

[Nikhil](https://hashnode.com/@nikhilshahu) I wrote a function for counting child elements inside a div and displays the count value in html. I think there is a property in js to find number of child nodes for a particular node.

Everytime we drag a card from one div and drop in another div , while the drop event occurs that function get's triggered.

This is how i've done that.

I forgot to add those files in github nikhil 🤦. I lost those files 😐.

[Nikhil](https://hashnode.com/@nikhilshahu)

[May 8, 2022](https://hashnode.com/posts/creating-a-kanban-board-with-html-css-and-javascript/60c5ba2d1679ed6f51a27987/comment/61716edd0c5e175a1c612d65#reply-6277ace0317fc95a74ca9c36)

ok thanks. This what I needed. [vamsi krishna hanumalasetty](https://hashnode.com/@Vamsikrishna45)
