Showing
1 changed file
with
1 additions
and
1 deletions
@@ -95,7 +95,7 @@ components.prototype={ | @@ -95,7 +95,7 @@ components.prototype={ | ||
95 | //下拉选择 | 95 | //下拉选择 |
96 | $("select", that.el).each(function() { | 96 | $("select", that.el).each(function() { |
97 | var value = $.trim($(this).val()); | 97 | var value = $.trim($(this).val()); |
98 | - var name = $(this).children(":first").text().replace(/[请选择]/g, ""); | 98 | + var name = $(this).children(":first").text().replace(/请选择/g, ""); |
99 | 99 | ||
100 | if ($(this).attr("required") && (value == -1 || value == "")) { | 100 | if ($(this).attr("required") && (value == -1 || value == "")) { |
101 | err.push("<p>请选择 " + name + "</p>"); | 101 | err.push("<p>请选择 " + name + "</p>"); |
-
Please register or login to post a comment