This project is read-only.

Alpha numeric zip code

Jun 28, 2012 at 7:05 PM

Hi there i prefer having postal code as alphanumeric in address book. How am i suppose to do it ?

Jun 29, 2012 at 10:28 AM

Hi megan ,

check the class called for the zip textbox. You can find class="required number" . Just keep the class as "required" and write the given scripts in the JS validation in the same .ascx page.

                     $("#txtZip").keyup(function() {
                    var $th = $(this);
                    $th.val($th.val().replace(/[^a-zA-Z0-9]/g, function(str) { return ''; }));

Hope it works !