Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ffdaa37

Browse files
Fix issue of form reset after success
1 parent f550bdc commit ffdaa37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎js/jquery.server_validation.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var settings = jQuery.extend({
4949
$('.form-group').removeClass('has-error');
5050
if(error_obj.status==false)
5151
{
52-
52+
$('#'+settings.form_id)[0].reset();
5353
$('#'+settings.button_id).after(alert_message(error_obj.data[0].error));
5454
//for redirecting the page after successful complete
5555
if(error_obj.data.length>1 && error_obj.data[1].link.length>0){

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /