i would like to know if we have something to do to keep style in a update input with a Ajax->link?
I have this code.
<?= $this->Ajax->link('Update fields', array('controller' => 'residences', 'action' => 'edit', $residence['Residence']['id']),
array('update' => 'finance_dep_nourriture_commentaire')) ?>
and my div
<?= $this->Ajax->div('finance_dep_nourriture_commentaire') ?>
<?= $this->Form->input('Residence.finance_dep_nourriture_commentaire', array('size' => '10', 'alt' => 'cash')) ?>$/l'unité
<?= $this->Ajax->divEnd('finance_dep_nourriture_commentaire') ?>
my field have this code before the update
<div id="finance_dep_nourriture_commentaire">
<input id="ResidenceFinanceDepNourritureCommentaire" type="text" value="1600.00" alt="cash" size="10" name="data[Residence][finance_dep_nourriture_commentaire]" style="text-align: right;">mask=Object { attr="alt", mask="99.999999999999", type="reverse", more...}events=Object { keydown=[1], keypress=[1], keyup=[1], more...}handle=function()
$/l'unité
after the update
<div id="finance_dep_nourriture_commentaire">
<input id="ResidenceFinanceDepNourritureCommentaire" type="text" value="2000.00" maxlength="13" alt="cash" size="10" name="data[Residence][finance_dep_nourriture_commentaire]">
$/l'unité
how i can keep the mask, style, etc?
thanks.