jQuery: Selector

JQUERY


Element and ID Combination

Element with ID : id_portfolio

$(":text#id_portfolio").addClass( "form-control  col-sm-6" );

 

Element

$( "p" ).addClass( "form-group row" );
$( "label" ).addClass( "col-sm-4 col-form-label" );
$(":text").addClass( "form-control  col-sm-6" );
$("select").addClass( "form-control  col-sm-6" );

 

            Related
jQuery: Selector