I would like to know if JQuery BlockUI plugin can be used to disable a input field directly.
I see the samples on jquery plugin.
http://jquery.malsup.com/block/#element.
when I give just the input field id in the jquery selector, it is not working.
$(document).ready(function() {
$('#blockButton').click(function() {
$('#inputId').block({ message: null });
})
when I just give the input field id, it doesn't work, but instead if i give anchor tag id or a div tag id it is working fine.
is there a solution to block just the input fields(text, select etc).
please do let me know.
You could just set the input to readonly instead of trying to block it:
or