The title says everything... I've been reading several posts on Stackoverflow as well as the documentation, but I haven't found a satisfactory explanation yet.
If ng-disabled
is activated, is the input value inside the tag removed?
Let me illustrate with an example.
<form method="POST" name="form" action="">
<select ng-model="model[1]"
ng-options="i for i in fc.items[1]"
ng-disabled="true">
</select>
<select ng-model="model[2]"
ng-options="i for i in fc.items[2]"
ng-disabled="false">
</select>
<input type="submit" value="Next"/>
</form>
The input value is results[2]:number:1
. (number:1
is the expected result).
When I remove ng-disabled
, the result is results[1]:number:1
results[2]:number:1
.
I'm about to conclude the ng-disabled
affects the input value, but I'd like to know if anyone here knows how to get all the input values (if it's possible).