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

How do i get select multiple values or checkbox multiple selections using mustachejs? #740

Open
CodeCurosity opened this issue Feb 27, 2020 · 0 comments

Comments

@CodeCurosity
Copy link

CodeCurosity commented Feb 27, 2020

I can get single values just fine but i am not sure how to get multiple selected values using select or checkbox control.

var formdata = jQuery("#myform").serializeArray();
  var data = {};
  jQuery(myform).each(function(index, obj){
      data[obj.name] = obj.value;
  });
  var rendered = Mustache.render(template, data);

Thank you.

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

2 participants
@CodeCurosity and others