Find an element by class and attribute value
Hello guys,
I need to find in the document an element by class and attribute value like this:
- <span class="ui-button-text artEdit" rif="artViewDiv52">Save</span>
If I want take the element by class I write:
- $(document).find('.artEdit');
If I want take the element by attribute value I write:
- $(document).find('[rif=artViewDiv52]');
but if I want to find "
artEdit
" with rif="
artViewDiv52
" how can i write??
Thanks