To select input ending with -top I can sue the following:
$("input[class$='-top'],input[class*='-top ']")
But, how to check if this end with -top?
$('Input').keyup( function(){
// How to check if $(this).prop('class') end with "-top"
});
How to check if $(this).prop('class') end with "-top"
Any suggestions much appreciated.
You’re looking for
.is():edit — substitute in the selector of your choice of course …