• Post Reply Bookmark Topic Watch Topic
  • New Topic

Not submitting forms with disabled attribute

 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a jsp where then there is a select option. I set the disabled attribute and the only way that
I am populating this select option is thru ajax.

Upon population, I automatically select all option but I dont want user to be able to change anything from these
select option so that why there's the disabled attribute.


My problem is, I notice that during form submit, data is not being sent. I tried to remove the disabled and it went well and I was able to bind my form bean.

Sorry if this might be simple but this is the first time that I did something like this. Is there any workaround in what I am thinking?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disabled elements do not participate in form submission.
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

Disabled elements do not participate in form submission


Thanks as always!

I will ask my follow up question on the HTML forum since I think it is more appropriate there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!