I want to take the value from text field to a variable for checking a condition Is it possible in view? I'm using CodeIgniter.
<input type="text" id="student_gen" name="student_gen">
I want to take the value from text field to a variable for checking a condition Is it possible in view? I'm using CodeIgniter.
<input type="text" id="student_gen" name="student_gen">
On form submit you can take value in javascript
function like:-
var x=document.getElementbyId('student_gen').value;
If you want to do it on entering text immediately then you can call a function on onchange="myFunction()"
and in function you can take value by above method.