+ 1

I want a popup messege when I submit my form so i use bootstrap modal but it working when my form is empty how can I avoid it

Is any one know how to do it without js. it's very helpful

29th Dec 2022, 6:14 AM
Mu_G Rahiman
Mu_G Rahiman - avatar
1 Respuesta
+ 4
1. You forgot to attach your code 2. How is this related to node.js? Your requirements are confusing. Even what you want to achieve is a bit confusing - whether you want to prevent the modal from being opened or the whole form being submitted, on condition that the input(?) is empty? 3. It seems you want some dynamic behaviour (something needs to happen differently depending on the content inside the form) but by using static tools (you said "without JS"). It's like you want to fly, even though you don't have any wings. Also, Bootstrap modals are using JavaScript behind the scenes. Bootstrap is basically only able to help you with layout and formatting your content, but it's not really meant to support custom behaviour. https://getbootstrap.com/docs/5.3/components/modal
29th Dec 2022, 8:35 AM
Tibor Santa
Tibor Santa - avatar