r2412 - Added button for removing a mask.

r2412 - Added button for removing a mask.


Author: powella
Date: Mon Mar 30 09:14:11 2009
New Revision: 2412
Modified:
branches/dev/mask/demos/mask/default.html
Log:
Added button for removing a mask.
Modified: branches/dev/mask/demos/mask/default.html
==============================================================================
--- branches/dev/mask/demos/mask/default.html    (original)
+++ branches/dev/mask/demos/mask/default.html    Mon Mar 30 09:14:11 2009
@@ -37,7 +37,7 @@
            $("#ssn").val('123456').mask('apply');
        });
        
-        $('#_ButtonRemoveMask').click(function(){
+        $('#_ButtonDestroyMask').click(function(){
            $("#phone").mask('destroy');
        });
@@ -49,6 +49,10 @@
            $('#_TextNoOptions').mask("option", "mask", "##-######");
        });
        
+        $('#_ButtonRemoveMask').click(function(){
+            $('#_TextNoOptions').mask("option", "mask", "");
+        });
+        
        $('#_ButtonChangePlaceholder').click(function(){
            $('#_TextNoOptions').mask("option", "placeholder", " ");
        });
@@ -76,7 +80,7 @@
            <td>Phone</td>
            <td><input id="phone" type="text" tabindex="2"/></td>
            <td>(###) ###-####</td>
-            <td><button type="button" id="_ButtonRemoveMask">Remove Phone
Mask</button></td>
+            <td><button type="button" id="_ButtonDestroyMask">Destroy Phone
Mask</button></td>
        </tr>
        <tr>
            <td>Phone + Ext</td>
@@ -136,6 +140,7 @@
            <td>
                <button type="button" id="_ButtonApply">Apply Mask</button>
                <button type="button" id="_ButtonChangeMask">Change Mask</button>
+                <button type="button" id="_ButtonRemoveMask">Remove Mask (no
destroy)</button>
                <button type="button" id="_ButtonChangePlaceholder">Change
Placeholder</button>
            </td>
        </tr>