Using El inside JavaScript -
how use el tags inside javascript?? dont want use class identifier in javascript function want use el expression inside javacript code below working fine issue m not understanding how use el in place of id in javascript. please me
<html> <c:foreach items="${studentslist.students}" var="student"> <script type="text/javascript"> $(document).ready(function(){ $( here want use el value id ).keyup(function(){ //do }); }); </script> </c:foreach> //dynamic list of input boxes each having id of particular student <c:foreach items="${studentslist.students}" var="student"> <input type="text" id="{student.id}"> </c:foreach> </html>
$("<c:out value="${yourvariable}"/>").keyup(function(){ //do });
Comments
Post a Comment