Skip to content Skip to sidebar Skip to footer

Two Inputs Using SlideToggle For Same Div

There is my html code:
X

Solution 1:

I am finding it hard to gather what it is you are wanting to achieve? Firstly your selector needs changing to select the correct element:

$('#the-game input') to $('.the-game input')

The following will do a toggle on your html input element:

$(document).on('click', '.the-game input', function () {
    $('.guesses').slideToggle(360, 'swing');
});

Can you provide more information around the second input field about what you want to do around it?


Post a Comment for "Two Inputs Using SlideToggle For Same Div"