Setting dropdown to readonly

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
cheemingyong
User
Posts: 37

Setting dropdown to readonly

Post by cheemingyong »

hi how do i set dropdowns to readonly in the generated form ?
as in dynamically. is there any pre-made function or using jquery ?

i am only aware i can do this to input text boxes using

try { $('#x_tmpsellRate').prop('readonly', true); } catch (err) { }
try { $('#x_tmpdAmount').attr('readonly', true); } catch (err) { }

i am really out of ideas for select dropdown though


cheemingyong
User
Posts: 37

Post by cheemingyong »

ok i figured that out ...

#x_TranType').prop('disabled', false);} catch (err) {}
try { $('#x_TranType').prop('disabled', 'disabled');} catch (err) {}


Post Reply