jQuery, find by tag name and class that starts with

Is there a way to find elements using both tag-name and class that starts with. I'm aware that you can do something like:

$(this).find(tag-name.full-class-name)

But how to use the starts-with (^=) in such a way?

Answers


i think this is what you are looking for

$("div[class^='apple-'])

it will show classes which start with "apple-"


Need Your Help

IntelliJ Idea: Configuring Artifacts to contain different web.xml and application.properties

intellij-idea web.xml

Is there a way with IntelliJ Idea, to create two kinds of artifacts - for development and for production, which would containt different sets of files.

Does this pattern work in C++?

c++ c++11 static-analysis c++98 prefast

I'm running PREfast static code analysis on my our projects, and it is giving me C6001 'using uninitialized memory' errors for this pattern:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.