Can i use name of element in javascript even?
This question already has an answer here:
使用attribute="value"
选择器:
$('[name="xxx"]')
Yes you can.
Use something like :
$('[name="xxx"]').prop('readonly', true);
链接地址: http://www.djcxy.com/p/36266.html