[eluser]Rahul gamit[/eluser]
Hi,
I am using select dropdown html control and one textbox,
I have used onchange() event of select dropdown control to fill the text box value,
this is the code
Code:
<select id="cmb_fruit" name="cmb_fruit">
<option value="1">Apple</option>
<option value="2">Mango</option>
<option value="3">Orange</option>
<input type="text" id="txt_fruit" name="txt_fruit"/>
[removed][removed]
[removed]
$(function() {
$('#cmb_fruit').change( function() {
<?php
?>
$('#txt_fruit').val($(this).find('option:selected').text());
});
});
[removed]
so this code will fill the value whenever the value of the dropdown is changed,
And i want to perform database operation whenever the data is changing ,
for example: if i select fruit i am having the value apple i want to select data from the database, so how can i perform codeigniter database operation in jquery?
thanks in advance .