I have to put mask in a textfield, but, (for a reason for make a update in a table and this field needs a treatment before enter in the table) without connect to the model as shows the example…
Using connection with a model, i have to make this…
but, this don’t solve my problem and i have to use the follow example…
<div class="row">
<label>Telefone Celular</label>
<input size="15" maxlength="13" id="Tel_resid" type="text" />
<!--I have to use the mask (99)9999-9999 here-->
</div>
have some function in yii or i have to use javascript to solve it??
Ok but, when i’ll use the information in the model (in this case this information is been used in another module… and i still have to save it…) i just use ‘tel_res’ to get the right information? (sorry i stay shocked when i see a solution using just yii mode ^^ is my first time using yii as you can see…)
Example:
i’ll have to take off the mask to use in my table in database…
so, i call in controller the content in field like this…
I solved, now he saves and makes everything right… except when i have to update he just go adding and adding… i make some changes using the idea who you pass…