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

Поділитися
Вставка
  • Опубліковано 7 лют 2025

КОМЕНТАРІ • 41

  • @flashsolidus
    @flashsolidus 4 роки тому +1

    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.

  • @robertoruns
    @robertoruns 8 років тому

    You make some of the best PHP tutorial videos out there.
    Keep it up!

  • @aesaes6157
    @aesaes6157 6 років тому

    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.

  • @prakashkoppal2614
    @prakashkoppal2614 4 роки тому

    Really awesome teaching sir

  • @ShahzadAli-ni6ny
    @ShahzadAli-ni6ny 6 років тому

    very clear instructions. Greatly appreciated.

  • @iboro-kun84
    @iboro-kun84 4 роки тому

    Thank you very much, Mr Sean.

  • @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?

  • @MicahJohns
    @MicahJohns 5 років тому +1

    This really helped man! Thanks

  • @juanmagm
    @juanmagm 2 роки тому

    Que belleza!!

  • @codesus99
    @codesus99 4 роки тому +1

    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?

  • @mdmayinuddin138
    @mdmayinuddin138 8 років тому

    It's really awesome! Thanks for this tutorial.

  • @khabrio
    @khabrio 8 років тому

    great tutorial! hope you do more.

  • @prashantsurana509
    @prashantsurana509 5 років тому +1

    not able to remove row :(
    Adding a row is working but removing of a row is not working please help

  • @rogerRVerse
    @rogerRVerse 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.

  • @akashpatel4932
    @akashpatel4932 6 років тому

    Thank you.Amazing video

  • @Dubroy
    @Dubroy 7 років тому

    thx man
    It helps me a lot on my job time

  • @jhoanborges6574
    @jhoanborges6574 7 років тому +1

    what a genius

  • @adooola.k1153
    @adooola.k1153 5 років тому

    you are amazing !!! thanks a lot

  • @RobertoRaymon
    @RobertoRaymon 6 років тому +1

    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

  • @kennethumis6907
    @kennethumis6907 5 років тому

    The line with the condition "if(x

  • @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.

  • @mannatarora3364
    @mannatarora3364 7 років тому +5

    please provide the link to source code.will be much easier

  • @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

  • @TheDjaditya
    @TheDjaditya 7 років тому

    could you make dynamic add and remove field with image ?
    for example:

  • @orapinchasov3219
    @orapinchasov3219 7 років тому

    hi!! it's fantastic tutorial, thank you!
    can you please send the code? it will be very helpful
    thank alot!!

  • @viane123456
    @viane123456 2 роки тому

    Can you share a code?

  • @victoriaxavier4471
    @victoriaxavier4471 5 років тому

    Sir please help me in my project
    Pageant tabulation system. Thankyou sir

  • @farukeomar4354
    @farukeomar4354 6 років тому

    Source code can u give?

  • @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

  • @MelatiSenja123
    @MelatiSenja123 3 роки тому

    When i click remove button, it only removed the remove button😂

  • @nathanielvlahakis1209
    @nathanielvlahakis1209 4 роки тому

    You're appending multiple elements with the same id . That is bad practice.