Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 145025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:21:00+00:00 2026-05-11T08:21:00+00:00

I have a firm grasp on XHTML & CSS, but PHP & Javascript look

  • 0

I have a firm grasp on XHTML & CSS, but PHP & Javascript look like magic to me.

I’m building a discussion site using the PHP-based Textpattern CMS. When users are logged in, they can use a public-side form to add a new discussion topic. There are a lot of input fields, grouped by the HTML fieldset element within a single form element that adds a new row to a specific database table. What I want to do is show only one fieldset at a time, inserting previous and next links that will allow people to navigate between fieldsets.

Textpattern comes bundled with jquery, and I found a jquery plugin that describes this functionality. But I can’t get it to work.

Here’s what I have in my document head:

<style type='text/css' media='screen'>     fieldset {display: none;} </style> <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js'></script> <script type='text/javascript' src='http://site.url/scripts/jquery.babysteps-0.2.1.js'></script> <script type='text/javascript' language='javascript'>     $('#step1').bindStep('#step2');     $('#step2').bindStep('#step3');      $('#step1').show(); </script> 

My form is something like this:

<fieldset id='step1'>     <legend>Step 1 Fields</legend>     <!-- fields --> </fieldset> <fieldset id='step2'>     <legend>Step 2 Fields</legend>     <!-- fields --> </fieldset> <fieldset id='step3'>     <legend>Step 3 Fields</legend>     <!-- fields --> </fieldset> <input type='submit' value='Post this Article!' /> 

The results are that the style declaration hides every fieldset, but the script doesn’t show step1 at all. I’ve double-checked all the file paths, and I’ve tried this using a link to my local jquery bundle instead of the Google version, but I get the same results.

I would be happy if I could get this working, but if there is another way to achieve this without the babysteps plugin, I’d be happy with that outcome as well.

Any guidance or concrete advice you can offer would be greatly appreciated! Step-by-step instructions or practical troubleshooting questions (Do you have your computer plugged in?) might also be helpful.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:21:01+00:00Added an answer on May 11, 2026 at 8:21 am

    Im not sure on that particular plugin, but with just jquery:

    $(function(){      $('#gotoStep2').click(function(){         $('#step1').hide();         $('#step2').show();         return false;     });  }); 

    where you have

    <input type='button' id='gotoStep2' value='next &raquo;'/> 

    inside step1

    and your css:

    #step2, #step3 //etc {     display: none; } 

    im sure you can work out how to repeat this for all your steps 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 102k
  • Answers 102k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can use change-svn-wc-format.py which can reform your workingcopy version… May 11, 2026 at 8:16 pm
  • Editorial Team
    Editorial Team added an answer It is call "rebasing" before merging back: you "rebase" (or… May 11, 2026 at 8:16 pm
  • Editorial Team
    Editorial Team added an answer You need to be careful because erase() will invalidate existing… May 11, 2026 at 8:16 pm

Related Questions

I have asked a similar question before, but I didn't have a firm grasp
My personal experience is that regexs solve problems that can't be efficiently solved any
I'm currently in the middle of porting a fairly large Perl The problem is
For a little background, I work for a firm that develops web-based enterprise social

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.