How to find the value in the max attribute of input element using Jquery

<input type="number" id="pageNumber" class="toolbarField pageNumber" value="1" size="4" min="1" tabindex="7" max="29">

I tried

$("input[max]").val()

But it didn't help

Edit
Report