Hi ALL,
I want to show the datetimepicker on each row of a table
If I give the unique Id in the jsp page and js, the cursor still pointing to only prev textbox.
Here is the detail code:
the below is the html code
<html:text property="DateTime" size="18" styleClass="maincontent1" value="" /><a href="javascript:NewCssCal('DateTime','yyyymmdd','arrow',true,24,false);"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"> </a>[/code]
For the above code I need to add a date picker for next row.
I did like below.
Var iarr = `Date Time";
Count = 0;
oCell.innerHTML = "<input type='text' name='"+iarr+"' id='"+iarr+"' size='18' class='maincontent1' ><a href=javascript:NewCssCal(\"" +iarr+ "\",\"yyyymmdd\",\"arrow\",true,24,false)><img src='images/cal.gif' width='16' height='16' border='0'alt='Pick a date'> </a> ";
count = count+1;
iarr = iarr+ count;
oCell = newRow.insertCell();
With the above code the cursor control pointing to the previous.
Do you have any solution for this? Please let me know
thanks
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELY
No comments:
Post a Comment