Combobox Validation with jQueryhttp://forums.asp.net/t/1806803.aspx/1?Combobox+Validation+with+jQueryFri, 25 May 2012 02:47:11 -040018068034994406http://forums.asp.net/p/1806803/4994406.aspx/1?Combobox+Validation+with+jQueryCombobox Validation with jQuery <pre class="prettyprint">How do I validate a combobox in jquery so we don't send the &quot;Select Product&quot; on Submit? cmbProduct is the combobox that I'm trying to validate.</pre> <pre class="prettyprint">The txtName field is for another type of validation that it's working. I just need the combobox.</pre> <pre class="prettyprint">&nbsp;</pre> <pre class="prettyprint">&#36;(document).ready(function() { // Validate the form with jquery validate plug in &#36;("#form1").validate({ rules: { txtName: { required: true, maxlength: 5, number: true }, cmbProduct: // &lt;--- Combobox Validation</pre> <pre class="prettyprint"> required: true } }, messages: { txtName: "Invalid Name", cmbProduct: "Select Product" } }); // Name &#36;("#txtName").focus(function() { &#36;("#txtName").css("background-color", "lightyellow"); &#36;("#txtName").autotab_filter('alphanumeric'); &#36;("#txtName").autotab({ target: 'txtCellPhone' }); }); &#36;("#txtName").blur(function() { &#36;("#txtName").css("background-color", "white"); &#36;("#txtName").autotab_filter('alphanumeric'); }); // Position the cursor &#36;(function() { &#36;("#txtName").focus(); }); jQuery.validator.setDefaults({ debug: true, success: "valid" });; });</pre> <p></p> 2012-05-23T18:23:02-04:004994801http://forums.asp.net/p/1806803/4994801.aspx/1?Re+Combobox+Validation+with+jQueryRe: Combobox Validation with jQuery <p>Hi,</p> <p>You can check this post-</p> <p><a href="http://www.devcurry.com/2010/05/using-jquery-validation-plugin-to.html">http://www.devcurry.com/2010/05/using-jquery-validation-plugin-to.html</a></p> 2012-05-24T04:38:38-04:004996569http://forums.asp.net/p/1806803/4996569.aspx/1?Re+Combobox+Validation+with+jQueryRe: Combobox Validation with jQuery <p>Hello</p> <p>The validation process can happen when you submit the data, namely when you press the button. In the click event, perform a test to see if the text field is valid to the rules. <a href="http://docs.jquery.com/Plugins/Validation/valid">http://docs.jquery.com/Plugins/Validation/valid</a></p> 2012-05-25T02:47:11-04:00