Welcome Guest, Not a member yet? Register   Sign In
need to change the select option in one view based on value of input text of another view
#1

[eluser]Unknown[/eluser]
need to change the select option data in one view based on value of input text of another view


Code:
// view1 which i need to pass the value of add and question fields to view 2
<div id="add_categeory">

&lt;input type="text" value="enter job title here" name="add" id="add"/&gt;&lt;br />
&lt;input type="text" value="add question" name="question" id="question"/&gt;&lt;br />

&lt;input type="submit" value="update" id="add_btn"/&gt;

</div>

Code:
// view 2
<div class="styled-select">
<select name="title" id="title">
<option>android developer</option>
<option>php developer</option>
<option>web designer</option>
</select>
</div>


how to do that
#2

[eluser]Tpojka[/eluser]
Check this one (there is demo too).
#3

[eluser]umagrama[/eluser]
User a html form for view_1 and then post it to the view_2.

Then in view_2 you can retrieve the data from the $_POST.

Hope it helps.




Theme © iAndrew 2016 - Forum software by © MyBB