# HTML::Selector syntax help

**URL:** <https://www.ruby-forum.com/t/html-selector-syntax-help/119088>\
**Category:** Rails\
**Created:** [November 2, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/html-selector-syntax-help/119088 "2007-11-02T23:46:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://www.ruby-forum.com/u/steve)\
**Post date:** [November 2, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/html-selector-syntax-help/119088/1 "2007-11-02T23:46:05Z")

</div>

I’m trying to do something like “label=Something+span#id” where  
‘Something’ is the text of the label, but can’t figure out how to do it.  
I  
tried using an attribute along the lines of [text=Something], but that  
didn’t work either.

Thanks,  
Steve
