javascript - Jquery selector for hiding element that has an children element with class -


this sample html

<iframe id="theiframe"> ... <form>     <div class="pluginconnectbutton">         <div class="pluginbutton pluginbuttoninline pluginconnectbuttondisconnected" title="">             ...         </div>         <div class="pluginbutton pluginbuttonpressed pluginbuttoninline pluginbuttonx pluginconnectbuttonconnected hidden_elem" title="">             ...         </div> </form> ... </iframe> 

i want if div class pluginbutton pluginbuttoninline pluginconnectbuttondisconnected has class "hidden_elem" , in iframe id = theiframe, action

http://jsfiddle.net/vt8ww/

alert($('#theiframe').hasclass('hidden_elem')); 

use


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -