Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
HasClass
Determine whether any of the matched elements are assigned the given class.<div> <p class="paragraphHasClass">Paragraph 1</p> <p class="paragraphHasClass selected">Paragraph 2</p> <div id="divHasClassResult1"> Paragraph 1 has 'selected' class: <span></span> </div> <div id="divHasClassResult2"> Paragraph 2 has 'selected' class: <span></span> </div> <div id="divHasClassResult3"> Some Paragraph has 'selected' class: <span></span> </div> <?php echo YsJQuery::newInstance() ->execute( YsJQuery::html()->in('#divHasClassResult1>span')->value( YsJQuery::hasClass('selected')->in('.paragraphHasClass:first') ->toString() ), YsJQuery::html()->in('#divHasClassResult2>span')->value( YsJQuery::hasClass('selected')->in('.paragraphHasClass:last') ->toString() ), YsJQuery::html()->in('#divHasClassResult3>span')->value( YsJQuery::hasClass('selected')->in('.paragraphHasClass') ->toString() ) ) ?> </div>
Paragraph 1
Paragraph 2
Paragraph 1 has 'selected' class:
Paragraph 2 has 'selected' class:
Some Paragraph has 'selected' class:
Support requests, bug reports, and off-topic comments will be deleted without warning.