Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form inputs in fixed columns #153

Open
jmoody47 opened this issue Feb 9, 2016 · 0 comments
Open

Form inputs in fixed columns #153

jmoody47 opened this issue Feb 9, 2016 · 0 comments

Comments

@jmoody47
Copy link

jmoody47 commented Feb 9, 2016

With a straight clone of the cells in the fixed columns, this presents a problem on form submit if form inputs exist in the fixed columns. The value of the original form input (hidden beneath the clone) is posted.

I was able to get around it with a simple script setting the values before submit, but it would be a nice thing to address in the future.

In case anyone else runs into this, here's the script I used:
$(form).submit(function(){
$(selector).each(function(){
val = $(this).val();
name = $(this).attr("name");
if(val !== ""){
$("input[name='" + name +"'").val(val);
}
});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant