Welcome Guest, Not a member yet? Register   Sign In
Help with a database insert
#18

[eluser]adityamenon[/eluser]
Whenever a new hidden input class is generated, make sure you add a class to it.

Before the form data is submitted, count the number of elements with that class name. If the number is 0, then the user did not select any categories. Return false in javascript to the click of the form submit button and display an alert asking them to select atleast one field.

I don't have the time to write the JS code right now... but it's very easy to do with jQuery.


Messages In This Thread
Help with a database insert - by El Forum - 06-21-2011, 09:40 AM
Help with a database insert - by El Forum - 06-21-2011, 10:01 AM
Help with a database insert - by El Forum - 06-21-2011, 10:02 AM
Help with a database insert - by El Forum - 06-21-2011, 10:10 AM
Help with a database insert - by El Forum - 06-21-2011, 10:11 AM
Help with a database insert - by El Forum - 06-21-2011, 10:14 AM
Help with a database insert - by El Forum - 06-21-2011, 10:18 AM
Help with a database insert - by El Forum - 06-21-2011, 10:24 AM
Help with a database insert - by El Forum - 06-21-2011, 10:28 AM
Help with a database insert - by El Forum - 06-21-2011, 10:30 AM
Help with a database insert - by El Forum - 06-21-2011, 10:34 AM
Help with a database insert - by El Forum - 06-21-2011, 10:36 AM
Help with a database insert - by El Forum - 06-21-2011, 10:39 AM
Help with a database insert - by El Forum - 06-21-2011, 10:41 AM
Help with a database insert - by El Forum - 06-21-2011, 10:59 AM
Help with a database insert - by El Forum - 06-21-2011, 11:36 AM
Help with a database insert - by El Forum - 06-21-2011, 12:05 PM
Help with a database insert - by El Forum - 06-22-2011, 01:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB