...
|
...
|
@@ -95,7 +95,7 @@ components.prototype={ |
|
|
//下拉选择
|
|
|
$("select", that.el).each(function() {
|
|
|
var value = $.trim($(this).val());
|
|
|
var name = $(this).children(":first").text().replace(/[请选择]/g, "");
|
|
|
var name = $(this).children(":first").text().replace(/请选择/g, "");
|
|
|
|
|
|
if ($(this).attr("required") && (value == -1 || value == "")) {
|
|
|
err.push("<p>请选择 " + name + "</p>");
|
...
|
...
|
|