Brett Winters free asked 5 years ago

Hello,I'm just playing around with some of your free templates for a new project in (using master/content layout)

I can't seem to remove the <form> tag from your demo without the formatting crashing: ( needs a <form runat=server> on the outer wrapper)

<form class="form-inline">[search input]</form>

I can't understand how <form> is used by the <div class="view to generate content there 
and why the formatting would crash   



Bartłomiej Malanowski staff commented 5 years ago

Currently, MVC is not supported

ivan44 free answered 5 years ago

If you're using webforms, nested form tags are a bit of a problem. You're on the right track by eliminating the mdb form tag and replacing it with something else, a 'div' perhaps with a custom class name. <div class="alt-form form-inline" >...[search input] </div> This will kill the styles, as you noticed already. The next thing you need to do is look for the MDB Sass rules for the form and extend those rules to include '#alt-form'. After you recompile the Sass, your custom div should inherit the style rules for the original form. You will have to use JavaScript to handle the click on that input control, since it's not the submit for the form anymore.    

Please insert min. 20 characters.


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



Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No