or
<div id="content"> <!-- SOME PAGE CONTENT-->
</div><div id="Window"> <div class="group"> <div class="toolbar"> <input type="WindowButton" id="Add" class="icon add" /> </div> <!-- SOME WINDOW CONTENT--> <div></div>jQuery("#Window").kendoWindow({ "open": //some function, "refresh": //some function, "height": "340px", "width": "550px", "modal": true, "title": //some title, "draggable": true, "visible": false });01.<html>02. <head>...something here...</head>03. <body>04. <div id="content">05. SOMETHING HERE06. </div>07. <div class="k-widget k-window" data-kendo-role="draggable" style="padding-top: 26px; min-width: 90px; min-height: 50px; width: 550px; height: 340px; display: none;">08. </body>09.</html>01.<html>02. <head>...something here...</head>03. <body>04. <div id="content">05. SOMETHING HERE06. </div>07. <div class="k-widget k-window" data-kendo-role="draggable" style="padding-top: 26px; min-width: 90px; min-height: 50px; width: 550px; height: 340px; display: none;">08. <div class="k-widget k-window" data-kendo-role="draggable" style="padding-top: 26px; min-width: 90px; min-height: 50px; width: 550px; height: 340px; display: none;">09. </body>10.</html>
$("#myform").kendoValidator({ rules: { custom: function(input) { var ret = true; if(input.is("[name=firstname]")){ ret = (input.val() === "Tom"); } else if(input.is("[name=lastname]")){ ret = (input.val() === "Smith"); } return ret; } }, messages: { custom: function(input) { if( input.is("[name=firstname]") ) { // want the message to say "Please be Tom" return 'Please be a Tom'; // this does not work } else if ( input.is(["name=lastname]") ) { // want the message to say "Please be Tom" return 'Please be a Smith'; // this does not work } } }});return 'Please be Tom'; fails to place any text in the error message.