I don't know if it's important, but as rows are removed, 'p' tags remain. They accumulate. I added in the "remove rows": $ ("# container"). on ("click", "#remove", function () { → $ (this) .parent ('div'). prev (). remove (); $ (this) .parent ('div'). remove (); x--; }) Thanks Shawn for the lessons.
Working perfectly.But kindly create a very basic tutorial so that we can save the same customer id & same invoice id to different item to make table. I search many tutorials but most are complicated or have robotic voice but your tutorials are most helpfull.kindly modify this html and php page with customer name and invoice id.
How i can set values from console in inputs If i have 100 input fields and i want to set value as 50 to the first 50 input and set value as 100 to the remaining 50 And all have same class name How can i do that?
Great! Well explained and very clean code. I'll subscribe for more, thanks! :D I have a question: how could I write something in the first imput, then press the add button and make the new field with the value I just wrote and, at the same time clean the first imput?
I don;t know why but I can't get the ID if the remove button in Jquery.. I can't even console.log it.. it does exist in the DOM when I inspect it but I can't make it remove or even prevent it's default.. I put it AFTER the add button as you do it here..
thanks man! was looking for this. i'm experimenting with php for a couple of months now and I've been watching tutorials about jquery and ajax the last couple of weeks. i would like to build a little invoice/inventory application and this video (and the next one) is very helpful! is the (e) in the $(document).ready (function (e) necessary? it's the first time I see it. in the previous jquery tutorials, those brackets were empty.
No, it's not necessary. In fact some IDEs will flag it, but it's habit for me because sometimes you will need to call the event and your code won't work because you didn't throw it in there. Thanks for the compliment. If you need any help, let me know.
Hello! Fantastic tutorial, thank you! Is it possible to adapt for a select field, with a list of options coming from a mysql database? I was testing, but was impossible to get :( Kind Regards! Alex.
I don't know if it's important, but as rows are removed, 'p' tags remain. They accumulate.
I added in the "remove rows":
$ ("# container"). on ("click", "#remove", function () {
→ $ (this) .parent ('div'). prev (). remove ();
$ (this) .parent ('div'). remove ();
x--;
})
Thanks Shawn for the lessons.
You make some of the best PHP tutorial videos out there.
Keep it up!
Thanks!
Working perfectly.But kindly create a very basic tutorial so that we can save the same customer id & same invoice id to different item to make table. I search many tutorials but most are complicated or have robotic voice but your tutorials are most helpfull.kindly modify this html and php page with customer name and invoice id.
Really awesome teaching sir
very clear instructions. Greatly appreciated.
Thank you very much, Mr Sean.
How i can set values from console in inputs
If i have 100 input fields and i want to set value as 50 to the first 50 input and set value as 100 to the remaining 50
And all have same class name
How can i do that?
This really helped man! Thanks
Que belleza!!
Sir how can I fetch data from DB and be able to put it in select box to be also selected
Great! Well explained and very clean code. I'll subscribe for more, thanks! :D
I have a question: how could I write something in the first imput, then press the add button and make the new field with the value I just wrote and, at the same time clean the first imput?
It's really awesome! Thanks for this tutorial.
great tutorial! hope you do more.
not able to remove row :(
Adding a row is working but removing of a row is not working please help
I don;t know why but I can't get the ID if the remove button in Jquery.. I can't even console.log it.. it does exist in the DOM when I inspect it but I can't make it remove or even prevent it's default.. I put it AFTER the add button as you do it here..
thanks man! was looking for this. i'm experimenting with php for a couple of months now and I've been watching tutorials about jquery and ajax the last couple of weeks. i would like to build a little invoice/inventory application and this video (and the next one) is very helpful! is the (e) in the $(document).ready (function (e) necessary? it's the first time I see it. in the previous jquery tutorials, those brackets were empty.
No, it's not necessary. In fact some IDEs will flag it, but it's habit for me because sometimes you will need to call the event and your code won't work because you didn't throw it in there. Thanks for the compliment. If you need any help, let me know.
Thank you.Amazing video
thx man
It helps me a lot on my job time
what a genius
you are amazing !!! thanks a lot
When I put in the beginning code, when I click Add More the second line populates but then it immediately goes away!
make the add more button outside of form tag
The line with the condition "if(x
Sir i want to store data in xml file rather than a database. it is a part of my project plz help.
please provide the link to source code.will be much easier
Hello! Fantastic tutorial, thank you! Is it possible to adapt for a select field, with a list of options coming from a mysql database? I was testing, but was impossible to get :(
Kind Regards!
Alex.
Yes. Send me a message on skype and I'll show you how. CoolEditz
could you make dynamic add and remove field with image ?
for example:
hi!! it's fantastic tutorial, thank you!
can you please send the code? it will be very helpful
thank alot!!
Can you share a code?
Sir please help me in my project
Pageant tabulation system. Thankyou sir
Source code can u give?
wow u are so genius.may i have ur email or what ever that i can communicate about php
Hello. My Skype is CoolEditz
When i click remove button, it only removed the remove button😂
You're appending multiple elements with the same id . That is bad practice.