Wijmo UI for the Web
invalidClass Option

The CSS class applied to the widget when an invalid value is entered.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  any
    returnsValue = $(".selector").wijinputdate("option", "invalidClass");
    
    // Set value
    var newValue; // Type:  any
    $(".selector").wijinputdate("option", "invalidClass", newValue);
        
});
Javascript (Specification) 
var invalidClass : any;
Example
// This example sets the invalidClass option to "invalid".
.wijmo-wijinput.invalid {
color: red !important;
background-color: green !important;
font-size: xx-large;
} 
$(".selector").wijinputcore("option", "invalidClass" "invalid");
Remarks
For some property of the css, such as the color, because wijmo has set default style, and it may be has a higher priority, so custom need to user a higher priority than the defualt.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijinputdate jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.