thanks a lot :))))))))))

On Fri, Jun 6, 2014 at 2:41 PM, Karol Siwek <karsi...@gmail.com> wrote:

> IMHO the best way is to use "ng-if"
>
> like that:
>
> <div ng-controller="MyCtrl">
>     <select ng-model="selection">
>
>         <option value="">- - Make Selection - -</option>
>         <option value="PP">PP</option>
>         <option value="PM">PM</option>
>     </select>
>
>     <input ng-if="selection=='PP'" type="text" />
>     <input ng-if="selection=='PM'" type="number" />
> </div>
>
>
>
> W dniu czwartek, 5 czerwca 2014 13:44:20 UTC+2 użytkownik Znegui Maryam
> napisał:
>>
>> hello everybody
>> I want to display input tag according to the selected option
>>
>> expl :
>>
>>  <select
>>             ng-model="selection"
>>
>>             <option value="">- - Make Selection - -</option>
>>             <option value="PP">PP</option>
>>             <option value="PM">PM</option>
>>         </select>
>>
>> so if i select PP i want to display <input type="text">
>> else if I select PM i want to display <input type="number">
>>
>> thanks a lot
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/KkfkDXrXmrA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to