how do i get the code for the contact forms to make it work


Topic: how do i get the code for the contact forms to make it work i have paid for mdbpro but i am new so unsure

johnkkkk4444 asked 4 years ago

Expected behavior

want the contact forms to submit

Actual behavior

have no CSS/js code to make it work when i select it on the pro block components Resources (screenshots, code snippets etc.)


Krzysztof Wilk staff answered 4 years ago

Hi!

You can make an input, that has type="submit" inside your <form> or just specify custom callback using submit event, for example:

$('#your-form-id').on('submit', function() {
  // specify what code should do after submitting a form  
);

Best regards


johnkkkk4444 commented 4 years ago

Thank you Krzysztof, is there a tutorial on how i can do this or perphas code on the site which i can copy and edit to learn from s829227868.websitehome.co.uk this is my site i have used some of the blocks from the pro package but i very new at this so kind of sometimes need more visual or audio step by step


Krzysztof Wilk staff commented 4 years ago

Sure, we have a tutorial for forms here: https://mdbootstrap.com/education/html/chapter-2-lesson-7/

You can also check out our material forms, they are working in the same way as examples above, but they are prettier :) https://mdbootstrap.com/docs/jquery/forms/basic/

If you want to trigger your custom callback when you are submitting your form, just read somewhere about the "submit" event, for example here: https://api.jquery.com/submit/

Best regards


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: laptop
  • Browser: google
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No
Tags