-
Notifications
You must be signed in to change notification settings - Fork 230
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
Does not work with bootstrap form html layout #108
Comments
The issue that you're encountering is that you've changed the the The only thing you need to do is ensure that all of the required fields are within a containing element of some sort, and that the containing element is passed to Skeuocard upon instantiation. As a side note, you can find this information under the Changing Underlying Value Selectors header in README.md. |
Sorry, I should have shown the default layout because I'm using custom fields. It also breaks when using the default field names: <div class="control-group">
<label for="cc_type">Card Type</label>
<div class="controls">
<select name="cc_type">
<option value="">...</option>
<option value="visa">Visa</option>
<option value="discover">Discover</option>
<option value="mastercard">MasterCard</option>
<option value="maestro">Maestro</option>
<option value="jcb">JCB</option>
<option value="unionpay">China UnionPay</option>
<option value="amex">American Express</option>
<option value="dinersclubintl">Diners Club</option>
</select>
</div>
</div> The error occurs specifically on this line: |
…d changes included. Since skeuocard basically works only for IE10+ we almost always have to provide a good no-js alternative. In order to style the inputs we will often include them in divs or other containers which will be removed by the initialisation JS. Thanks @leek for the fix. Refs kenkeiter#103 kenkeiter#101 Fixes kenkeiter#108
…to provide a good no-js alternative. In order to style the inputs we will often include them in divs or other containers which will be removed by the initialisation JS. Thanks @leek for the fix. This is basically a copy of kenkeiter@a40ece6#diff-0 with the compiled changes included. Refs kenkeiter#103 kenkeiter#101 Fixes kenkeiter#108 Conflicts: javascripts/skeuocard.js javascripts/skeuocard.min.js javascripts/src/Skeuocard.coffee
Since skeuocard basically works only for IE10+ we almost always have to provide a good no-js alternative. In order to style the inputs we will often include them in divs or other containers which will be removed by the initialisation JS. Thanks @leek for the fix. This is basically a copy of kenkeiter@a40ece6#diff-0 with the compiled changes included. Refs kenkeiter#103 kenkeiter#101 Fixes kenkeiter#108
It happens the same to me, any solution? |
For example, if I change the select box html to:
I get the following error:
Uncaught TypeError: Cannot read property 'length' of undefined
It would be nice if the no-js html was customizable so that the fallback form will look decent in bootstrap (or whatever framework one might be using).
The text was updated successfully, but these errors were encountered: