jQuery Tutorial Tutorials - jQuery :button selector

:button selector

The jQuery :button selector is used to select the <button> tag or type="button" element.

jQuery :button selector Syntax

$(':button')

jQuery :button selector Examples

In below example,We will find all button inputs and mark them.

$( ":button" ).parent('div').css( 'border','2px solid orange');

Try now

Date:2019-08-18 18:59:26 From:www.Lautturi.com author:Lautturi