4
In a reply to SOEN
They pass an approach of temporarily disabling the camps:
Example:
var myform = $('#myform');
// Encontra os elementos e remove o atributo disable
var disabled = myform.find(':input:disabled').removeAttr('disabled');
// serialize o form
var serialized = myform.serialize();
// coloca todos os elementos que foram desabilidados disable
disabled.attr('disabled','disabled');
Is there any more efficient way to do serialize()
in form fields that are disabled ?
I do not think, I believe that you will always have to remove the attribute 'disabled'.
– Rui Lima
This question has 2 closing votes as out of scope for not being a programming problem. Who voted for the closure, would like to justify? For to me it seems to be a question perfectly within the scope. She’s in the closing analysis queue, and since I don’t see anything wrong I’m going to click on the "Leave it open".
– Victor Stafusa