Thursday, December 13, 2018

.first() in jQuery

When there is more than one thing to match on, filter down to the first match like so:

$("#BulkUpload").find('button').first().attr('style', "display: none;");

No comments:

Post a Comment