Affecting Single Element with jQuery -
What am I trying to do, when my function will be in user. Yale-Button then Yell-box-Txt will disappear.
The only problem is that I have another button on the site and whenever I hover one of them, all the text fields will disappear.
This is my job:
$ ('.jell-button'). Hover (function () ($. ('.Yell-box-txt'). Remove ()})
Thanks in advance for your help
Without knowing your markup, D suspects that your .yell-box-txt
will appear on your .yell-button
in the same block. So for markup like this:
& lt; Div & gt; & Lt; One class = "yell-button" & gt; Text button & lt; / A & gt; & Lt; Span class = "yell-box-txt" & gt; Text & lt; / A & gt; & Lt; / Div & gt;
You want to use something like this:
$ ('.jell-button'). Hover (function () {$ (this) .closest ('div'). ('.jell-box-txt'). Remove ();});
Comments
Post a Comment