NameI can"t mix the disabled attribute lớn the select tag since it wont get submitted into the vps so I am thinking of just disabling the paragraph that serves as parent of the select tag. Is this possible or can you suggest another alternative into my way of thinking?
Bạn đang xem: ParagraphSheriff
posted 12 years ago
Not possible. Only form elements have the disabled attribute. Is the dropdown only conditionally disabled? If not, why have a dropdown at all that cannot be used? Otherwise, you could re-enable the dropdown just before submitting (I think you mentioned this elsewhere), or you could create a hidden đầu vào that provides the value khổng lồ be submitted.
Is the dropdown only conditionally disabled? If not, why have a dropdown at all that cannot be used?I actually bind the values in my dropdown with a size bean in my Spring MVC Command bean. They are always disabled và are shown only & gets populated based on certain choices by the user & by the returns of my ajax hotline to the vps
you could re-enable the dropdown just before submitting (I think you mentioned this elsewhere)Haven"t thought of this yet. With these, I created this code and hijack the khung submission $(document).ready(function()//this part of the code will hijack the khung submission$("#forms").submit(function()$("#dynamic_data").removeAttr("disabled");//disable the submit button also$("#addButton").addAttr("disabled", "disabled"););); Everything gets submitted và is binded correctly on the command bean. Thanks thanks!