ADD DYNAMIC FIELDS TO FORMS WITH JQUERY AND PHP - PART 1

  Рет қаралды 53,213

PHPBasics

PHPBasics

Күн бұрын

Пікірлер: 41
@flashsolidus
@flashsolidus 3 жыл бұрын
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.
@aesaes6157
@aesaes6157 5 жыл бұрын
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.
@robertoruns
@robertoruns 7 жыл бұрын
You make some of the best PHP tutorial videos out there. Keep it up!
@phpBasics
@phpBasics 7 жыл бұрын
Thanks!
@prakashkoppal2614
@prakashkoppal2614 4 жыл бұрын
Really awesome teaching sir
@ShahzadAli-ni6ny
@ShahzadAli-ni6ny 5 жыл бұрын
very clear instructions. Greatly appreciated.
@juanmagm
@juanmagm 2 жыл бұрын
Que belleza!!
@iboro-kun84
@iboro-kun84 4 жыл бұрын
Thank you very much, Mr Sean.
@MicahJohns
@MicahJohns 5 жыл бұрын
This really helped man! Thanks
@mdmayinuddin138
@mdmayinuddin138 7 жыл бұрын
It's really awesome! Thanks for this tutorial.
@codesus99
@codesus99 4 жыл бұрын
Sir how can I fetch data from DB and be able to put it in select box to be also selected
@Faks_Ar
@Faks_Ar 7 жыл бұрын
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?
@mamirkhan8313
@mamirkhan8313 2 жыл бұрын
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?
@mannatarora3364
@mannatarora3364 7 жыл бұрын
please provide the link to source code.will be much easier
@kennethumis6907
@kennethumis6907 5 жыл бұрын
The line with the condition "if(x
@akashpatel4932
@akashpatel4932 6 жыл бұрын
Thank you.Amazing video
@khabrio
@khabrio 7 жыл бұрын
great tutorial! hope you do more.
@prashantsurana509
@prashantsurana509 5 жыл бұрын
not able to remove row :( Adding a row is working but removing of a row is not working please help
@jhoanborges6574
@jhoanborges6574 7 жыл бұрын
what a genius
@adooola.k1153
@adooola.k1153 5 жыл бұрын
you are amazing !!! thanks a lot
@Dubroy
@Dubroy 7 жыл бұрын
thx man It helps me a lot on my job time
@r0ger80
@r0ger80 6 жыл бұрын
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..
@auurk
@auurk 7 жыл бұрын
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.
@phpBasics
@phpBasics 7 жыл бұрын
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.
@alextr4295
@alextr4295 7 жыл бұрын
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.
@phpBasics
@phpBasics 7 жыл бұрын
Yes. Send me a message on skype and I'll show you how. CoolEditz
@RobertoRaymon
@RobertoRaymon 6 жыл бұрын
When I put in the beginning code, when I click Add More the second line populates but then it immediately goes away!
@madangopal2326
@madangopal2326 4 жыл бұрын
make the add more button outside of form tag
@TheDjaditya
@TheDjaditya 6 жыл бұрын
could you make dynamic add and remove field with image ? for example:
@sikandarafridi1014
@sikandarafridi1014 5 жыл бұрын
Sir i want to store data in xml file rather than a database. it is a part of my project plz help.
@orapinchasov3219
@orapinchasov3219 7 жыл бұрын
hi!! it's fantastic tutorial, thank you! can you please send the code? it will be very helpful thank alot!!
@victoriaxavier4471
@victoriaxavier4471 5 жыл бұрын
Sir please help me in my project Pageant tabulation system. Thankyou sir
@viane123456
@viane123456 2 жыл бұрын
Can you share a code?
@farukeomar4354
@farukeomar4354 6 жыл бұрын
Source code can u give?
@theresaway4075
@theresaway4075 3 жыл бұрын
When i click remove button, it only removed the remove button😂
@sallyd9691
@sallyd9691 5 жыл бұрын
wow u are so genius.may i have ur email or what ever that i can communicate about php
@phpBasics
@phpBasics 5 жыл бұрын
Hello. My Skype is CoolEditz
@nathanielvlahakis1209
@nathanielvlahakis1209 3 жыл бұрын
You're appending multiple elements with the same id . That is bad practice.
[PART 2]ADD DYNAMIC FIELDS TO FORMS WITH JQUERY AND PHP
14:34
PHPBasics
Рет қаралды 23 М.
Dynamically Add / Remove input fields in PHP with Jquery Ajax
11:11
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 47 МЛН
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 127 МЛН
Disable right-click on PDF viewer using JavaScript
18:33
PB Web Solutions
Рет қаралды 43
Load Records on Select box using Ajax Jquery Mysql and PHP
9:14
Webslesson
Рет қаралды 131 М.
Date Range Search in Datatables using PHP Ajax
20:51
Webslesson
Рет қаралды 105 М.
PHP - How to Insert Multiple Form Data using JQuery Ajax
37:51
Webslesson
Рет қаралды 118 М.
Multiple Inline Insert into Mysql using Ajax JQuery in PHP
25:00
Webslesson
Рет қаралды 118 М.
Add Remove Select Box Dynamically using Jquery with Ajax PHP
25:02
Select All checkboxes and processing
12:52
PHPBasics
Рет қаралды 23 М.