I have a form with some input disabled (why? -> I explain it below) and I want the values to be sent in the submint.
Why they are disabled: Because their values are calculated based on the rest of the input and I have not set them as readonly because I do not want the focus to pass through them when I press the tab key.
I am using jQuery and javascript.
You can create an ajax in which you send the parameters you want from your controller through the ajax url .
Example:
Already in your controller you create a function according to what you want it to do:
}
It is your decision if you send it by .click, ready etc the ajax. Hope this can help you. Luck!
If what you want is not to be focused with keyboard navigation use tabindex="-1"