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.
@aesaes61575 жыл бұрын
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.
@robertoruns7 жыл бұрын
You make some of the best PHP tutorial videos out there. Keep it up!
@phpBasics7 жыл бұрын
Thanks!
@prakashkoppal26144 жыл бұрын
Really awesome teaching sir
@ShahzadAli-ni6ny5 жыл бұрын
very clear instructions. Greatly appreciated.
@juanmagm2 жыл бұрын
Que belleza!!
@iboro-kun844 жыл бұрын
Thank you very much, Mr Sean.
@MicahJohns5 жыл бұрын
This really helped man! Thanks
@mdmayinuddin1387 жыл бұрын
It's really awesome! Thanks for this tutorial.
@codesus994 жыл бұрын
Sir how can I fetch data from DB and be able to put it in select box to be also selected
@Faks_Ar7 жыл бұрын
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?
@mamirkhan83132 жыл бұрын
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?
@mannatarora33647 жыл бұрын
please provide the link to source code.will be much easier
@kennethumis69075 жыл бұрын
The line with the condition "if(x
@akashpatel49326 жыл бұрын
Thank you.Amazing video
@khabrio7 жыл бұрын
great tutorial! hope you do more.
@prashantsurana5095 жыл бұрын
not able to remove row :( Adding a row is working but removing of a row is not working please help
@jhoanborges65747 жыл бұрын
what a genius
@adooola.k11535 жыл бұрын
you are amazing !!! thanks a lot
@Dubroy7 жыл бұрын
thx man It helps me a lot on my job time
@r0ger806 жыл бұрын
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..
@auurk7 жыл бұрын
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.
@phpBasics7 жыл бұрын
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.
@alextr42957 жыл бұрын
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.
@phpBasics7 жыл бұрын
Yes. Send me a message on skype and I'll show you how. CoolEditz
@RobertoRaymon6 жыл бұрын
When I put in the beginning code, when I click Add More the second line populates but then it immediately goes away!
@madangopal23264 жыл бұрын
make the add more button outside of form tag
@TheDjaditya6 жыл бұрын
could you make dynamic add and remove field with image ? for example:
@sikandarafridi10145 жыл бұрын
Sir i want to store data in xml file rather than a database. it is a part of my project plz help.
@orapinchasov32197 жыл бұрын
hi!! it's fantastic tutorial, thank you! can you please send the code? it will be very helpful thank alot!!
@victoriaxavier44715 жыл бұрын
Sir please help me in my project Pageant tabulation system. Thankyou sir
@viane1234562 жыл бұрын
Can you share a code?
@farukeomar43546 жыл бұрын
Source code can u give?
@theresaway40753 жыл бұрын
When i click remove button, it only removed the remove button😂
@sallyd96915 жыл бұрын
wow u are so genius.may i have ur email or what ever that i can communicate about php
@phpBasics5 жыл бұрын
Hello. My Skype is CoolEditz
@nathanielvlahakis12093 жыл бұрын
You're appending multiple elements with the same id . That is bad practice.