Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Boris Kamp
16,660 Points<input type="submit & button" ??
Hi guys,
Im editing a plugin to match the bootstrap styles and am struggling with getting the "btn btn-succes" classes to work on the submit button! here is the code:
```
<input type="submit" id="gct_submit_testimonial" name="gct_submit_testimonial" value="'.__("Versturen", GCT_NAME).'" class="btn btn-success" validate="required:true" />
```
the type="submit" should contain "button" for the bootstrap button to add it styles, but that breaks the submit button and makes it and input field with the button styles.
How do I fix this? thanks!
2 Answers
James Andrews
7,245 PointsYou need to use the <button type="submit">My Button</button> element not the <input type="submit"> element with bootstrap.
Boris Kamp
16,660 PointsThanks! stupid of me