• Resolved erich11

    (@erich11)


    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://ww.wp.xz.cn/plugins/tabby-responsive-tabs/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter erich11

    (@erich11)

    sorry, please ignore the [code] lines.

    Plugin Author cubecolour

    (@numeeja)

    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

    (@erich11)

    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.