2K+ subscribers? This channel deserves at least 200K, One of the most underrated channels. Great for beginners like me, The JS loops are explained in a great way. Expecting more beginner projects in JS & PHP in future. Subscribed!
@CodeBand4 жыл бұрын
So glad to hear that... Thanks a lot for the support and lets make it 200k❤️❤️❤️ Definitely will keep up with more beginner projects in future...😊
@ijassubair79834 жыл бұрын
we are expecting more like this.... 😍
@CodeBand4 жыл бұрын
Sure, will definitely post some cool JS stuffs... Thanks a lot and keep supporting... :)
@briandesign4 жыл бұрын
cool little project!
@CodeBand4 жыл бұрын
Glad to hear that... :)
@marimuthur94562 жыл бұрын
Excellent trick 👌🏼👌🏼👌
@CodeBand2 жыл бұрын
Thank you!
@rcode2023 Жыл бұрын
thanks bro, you save my life
@akunnaebehekennia676619 күн бұрын
could you explain more about selecting across multiple columns? I have 6 columns i need to filter through and i followed your code but it only filters the first column. Urgent please! i present my app tomorrow😓
@prhasn3 жыл бұрын
Excellent tips. Thank you.
@CodeBand3 жыл бұрын
Very glad to hear that😊
@nicholasandrew97362 жыл бұрын
Hi, what is the logic if i want to search through all the columns? Thank you in advance!
@CodeBand2 жыл бұрын
You can use Logical OR operator to filter based on multiple columns... (querySelectorAll('td') will give you all three columns from which you can get the first item using index 0 and so on)
@KENs_Daily_Adventure Жыл бұрын
May I know why "startsWith(q)", meaning
@mdshohanislam8072 жыл бұрын
esay way to learning thanks
@CodeBand2 жыл бұрын
Thanks a lot...
@CreativeTutorialsWeb3 жыл бұрын
Thanks so much for solving my issue 😍
@CodeBand3 жыл бұрын
No problem 😊
@glupiajak3 жыл бұрын
That's pretty amazing, thanks
@CodeBand3 жыл бұрын
Glad to hear that...keep going😊
@FinbarAllanUCD2 жыл бұрын
I'm trying to add three inputs as filters for each of the three rows so that I can filter multiple columns with multiple inputs, any idea how I could update the script to achieve this?
@CodeBand Жыл бұрын
Sorry for the late reply... You figured it out ? You can pretty much do that with OR/AND statements.
@omkhatri2612 жыл бұрын
How to search any element in table by all column you can search only one column element, how we can search all column element. Please help me to solve this problem.
@CodeBand2 жыл бұрын
Sorry for the late reply... We can easily do that with some OR conditions.
@putramelanda11174 жыл бұрын
How to select the second td(column) ?
@CodeBand4 жыл бұрын
If you mean to search by second column instead of the name col, its not that hard, change the logic slightly like, document.querySelectorAll('td')[1] querySelector used in the video will only take the first element that matches the selector whereas querySelectorAll will fetch all the elements that match the criteria, so in this case, it will fetch 3 elements, because we have 3 tds, and your requirement is second td, and so the index 1.
Is this also working even your searching is on the other page of pagination?
@CodeBand3 жыл бұрын
It depends on how the pagination is done... And of course, you can fine tune the code in the way you wish to...😊
@marvinsantillan83672 жыл бұрын
How to get multiple columns?
@CodeBand2 жыл бұрын
Sorry for the late reply... You mean to filter using multiple columns ?
@rangabharath42534 жыл бұрын
awesome. What is display = table-row. I didn't understand that part ? Y u used table-row instead of display:block; Please clarify this doubt. Thank u so much.
@CodeBand4 жыл бұрын
table-row is actually meant for the row in a table as the name suggests, which means its used for table rows specifically, whereas block is generally used.
@rangabharath42534 жыл бұрын
@@CodeBand thank you
@putramelanda11174 жыл бұрын
How to select the second td(column)
@CodeBand4 жыл бұрын
If you mean to search by second column instead of the name col, its not that hard, change the logic slightly like, document.querySelectorAll('td')[1] querySelector used in the video will only take the first element that matches the selector whereas querySelectorAll will fetch all the elements that match the criteria, so in this case, it will fetch 3 elements, because we have 3 tds, and your requirement is second td, and so the index 1.
@salimkachemela4 жыл бұрын
Awesome
@CodeBand4 жыл бұрын
Thanks a lot brother...keep supporting... :)
@thearmor92313 жыл бұрын
Nice video
@CodeBand3 жыл бұрын
Thanks😊
@kakanadwani85254 жыл бұрын
Hi, I had a question maybe you can solve it. I want to create multiple search box filters and return the value with respect to the values that satisfy the value of all the search boxes. It would be great if you teach us
@CodeBand4 жыл бұрын
That's a great suggestion, and I may do it in the future. But, believe me, It's pretty much simple to do that as well. This video + some research in Google and Stackoverflow will give you the solution.
@rameshgywali28092 жыл бұрын
thanks
@CodeBand Жыл бұрын
:)
@jml65123 жыл бұрын
I got the error script.js:9 Uncaught TypeError: Cannot read properties of null (reading 'textContent')
@CodeBand3 жыл бұрын
Which means you're not getting that td element... Please consider checking your html structure again...
@creatorboy49012 жыл бұрын
not-working
@CodeBand2 жыл бұрын
Sorry for the late reply.... What's the error ?
@arshavin96ru Жыл бұрын
Nice code dude, but you could drop that funny accent)). It's fine to use your native accent.
@luciusseneca9162 Жыл бұрын
Don't know what you are talking about my dude. Accent was good. As a native speaker, had an easy time understanding his video.