Button onclick new fields shown
-
Hi,
I need help with a calculator setup on the link (use 12345 to view to the page).
I added a button to show next row of fields with an onclick event (saw in another support thread).
I added 4 buttons, I want to have 5 rows of fields – each added with one button click.
I added this code to buttons:
jQuery(‘.button-1,.button-2,.button-3,.button-4’).addClass(‘hide’);jQuery(‘.button-1’).removeClass(‘hide’);
Each with the new button number.
I want the buttons to disappear after the new row appeared, so I also added class to the buttons, button-2 to the first button, and so on, thought it would work this way, but after clicking button-2, button-1 appears again (I understand why, but I can’t work around it). Also, button-3 doesn’t even work – although it is built the same way as its predecessors.It would also be good, if one button would do the whole thing, and wouldn’t need new ones for each row of fields, but just couldn’t figure out how.
THanks in advance!
The page I need help with: [log in to see the link]
- The topic ‘Button onclick new fields shown’ is closed to new replies.