Answer the question
In order to leave comments, you need to log in
How to change form elements depending on selected select value in angularjs?
Hello. For example, there is such a dropdown list:
<select>
<option>Пункт 1</option>
<option>Пункт 2</option>
</select>
<input type="text"/>
Answer the question
In order to leave comments, you need to log in
<select ng-model="select">
<option value="val1">Пункт 1</option>
<option value="val2">Путкт 2</option>
</select>
<div ng-if="select == 'val2'">
<input type="text">
</div>
antibot protection, for example
https://httpbin.org/ check everything here
file_get_contents returns the contents of the file as a string, without executing it, so everything is logical.
If you connect it via include, it will be executed.
it is obvious that the file does not return anything, it means that the cant is most likely in the request, see what is passed to the request (stupidly debug output), then drive the request into sql with your hands, for example, in the muscle front, or in the console, and see what the select returns. Most likely, either these curves come, or there is a problem with the request.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question