Closure/Show element jQuery
-
Greetings, the answers I looked here and the search systems didn't help me.
I have a uniform.
<form class="form-inline" id="editName"> <input type="text" class="form-control" name="first" placeholder="Имя"> <input type="text" class="form-control" name="first" placeholder="Фамилия"> <button type="submit" class="btn btn-default">Сохранить</button> </form>
I need to show her or hide it on the clip. When she's default, it's got to be options from the first three pages of Google I've tried.
Not working.
$("#editorName").click(function() { $(this).find("form#editName").toggle(); });
-
Here's your decision, I think you'll figure out where you're going.
$( "#button-slide-l" ).click(function() {
if ( $("div.content").hasClass("close") == true ) { $('div.content').removeClass('close'); } else { $('div.content').addClass('close'); } });