Title: Tabs with forms and inline javascript
Last modified: August 22, 2016

---

# Tabs with forms and inline javascript

 *  Resolved [erich11](https://wordpress.org/support/users/erich11/)
 * (@erich11)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/tabs-with-forms-and-inline-javascript/)
 * Hello,
 * thanks for your excellet plugin, however I’m having some problems with what I
   want to achieve. I’ve checked the docu and forum, but didn’t find the answers.
   Many thanks for your help, Erich
 * 1) I have 2 tabs and outside of the tabs is the input tag for submit. The tabs
   are appearing ok, but the submit button seems to be not active.
    2) I also have
   some inline javascript code (actually to include the datepicker for a date field).
   When I include this code, the tabs are not appearing. 3) When the form is submitted,
   another page is loaded (special template with php code to check for errors). 
   With errors, I’m using another form input tag with onClick=\”history.back()\”
   >. Will this work with your plugin?
 * [code language="css"]
    [tabby title="Tab 1"]
 * <form action="antwort" method="post">
    Input fields tab 1
 * <?-- javascript for datepicken input field -->
    <script type="text/javascript"
   > jQuery(document).ready(function() { jQuery("#MyDate1").datepicker({ dateFormat:"
   d.m.yy", defaultDate: "3.12.2014", minDate: "3.12.2014", maxDate: "8.12.2014"});});
 * [tabby title="Tab 2"]
    Input fields tab 1
 * [tabbyending]
 * <input type="submit" value="Submit" />
 * </form>
 * [/code]
 * [https://wordpress.org/plugins/tabby-responsive-tabs/](https://wordpress.org/plugins/tabby-responsive-tabs/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [erich11](https://wordpress.org/support/users/erich11/)
 * (@erich11)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/tabs-with-forms-and-inline-javascript/#post-5417974)
 * sorry, please ignore the [code] lines.
 *  Plugin Author [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/tabs-with-forms-and-inline-javascript/#post-5418001)
 * I’m not sure what you are trying to achieve, but you shouldn’t add scripts in
   the WordPress editor, I would suggest that you create a plugin to enable you 
   to include your form/script via a shortcode.
 *  Thread Starter [erich11](https://wordpress.org/support/users/erich11/)
 * (@erich11)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/tabs-with-forms-and-inline-javascript/#post-5418122)
 * thanks for the hint, solved my problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Tabs with forms and inline javascript’ is closed to new replies.

 * ![](https://ps.w.org/tabby-responsive-tabs/assets/icon-256x256.jpg?rev=2682041)
 * [Tabby Responsive Tabs](https://wordpress.org/plugins/tabby-responsive-tabs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tabby-responsive-tabs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tabby-responsive-tabs/)
 * [Active Topics](https://wordpress.org/support/plugin/tabby-responsive-tabs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tabby-responsive-tabs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tabby-responsive-tabs/reviews/)

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [input](https://wordpress.org/support/topic-tag/input/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 3 replies
 * 2 participants
 * Last reply from: [erich11](https://wordpress.org/support/users/erich11/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/tabs-with-forms-and-inline-javascript/#post-5418122)
 * Status: resolved