Closed topless closed 10 years ago
There is already a form generated by impromptu, so you're ending up with a form inside a form, so this causes impromptu's form to not have any values.
The posted commit is to the dev branch, it adds an option for classes to be appended to impromptu's generated form, so you would do something like:
$.prompt('test message', {
classes: {
form: 'form-horizontal'
}
});
You can do other elements like this too when you need to add some extra styling, have a look at the docs or source around line 212 for all the options for "classes"
Thanks a lot, that works as expected, I should have been more thorough in first place :)
When the state html property is defined like suggested in the documentation, the form passes the values properly.
But when I am using the html layout that bootstrap requires to look nice, like
my form values are lost and I get an empty object as a result.