Displaying 1 result from an estimated 1 matches for "displaydatetxt".
2008 Jun 17
4
Formating Date Field
...n="MyAction.jsp" method="post">
<% ResultSet rs=db.executeQuery("select no,name from mytable");
while(rs.next())
{%>
<input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(<
%=rs.getString(1)%>) >
<%}
%>
<input type=text name=displaydatetxt id=displaydate/>
</form>
<script>
function callJs(arg1)
{
var url="Ajax.jsp";
new Ajax.Request(url, {asynchronous: true,method: "post",parameters:
"ajaxrefno=" +arg1,
onSuccess: function(request) {
$(''displaydatetxt'').value =reque...