I have a html element:
<input type='text' runat='server' name='RM1' id='RM1' required='5' readonly>
I need to have the value of the attribute 'required' this I do using jQuery, but when I run
$('#RM1').attr('required')
The return value is "Required"
, though it should be 5.
when I run $('#RM1').attr('id')
RM1 is returned.
Anyone knows what I am doing wrong?
note: the code is generated by C# that's runat
is set to server
.