Hello Guys,
how inactive submit button till user not fill the form? how can i make it possible, please share your suggestion and feedback.
Thanks

If you are using HTML5 then just add "required" attribute in each of your form control.By adding required,it will be mandatory and form will not submit until you fill all the fields marked as "required".

Second way is by javascript.Initially keep submit button diabled.Create a function that will check for the size of each field.Call this method on key events and check the size.Once the size of all fields are gretaer than or equal to one,enable submit button.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.