add type date to input
This commit is contained in:
parent
cf68cb8d93
commit
8a3d053816
|
@ -5,9 +5,12 @@ $(function() {
|
|||
for(i=0; i<$("td", $(this).parent().parent()).length-1;i++)
|
||||
{
|
||||
j= $($("td", $(this).parent().parent())[i]);
|
||||
j.html('<input '+(j.attr('class')=="pw"?'type="password" \
|
||||
data-oldpw="'+ltrim(j.html())+'"':'type="text"')+'\
|
||||
value="'+(j.attr('class')=="pw"?'':ltrim(j.html()))+'" />');
|
||||
inputOptions = '';
|
||||
if(j.attr('class')=="pw")
|
||||
inputOptions += 'type="password" data-oldpw="'+ltrim(j.html())+'" ';
|
||||
else if (j.attr('class') == "datene")
|
||||
inputOptions += 'type="date" '
|
||||
j.html('<input '+inputOptions+' value="'+(j.attr('class')=="pw"?'':ltrim(j.html()))+'" />');
|
||||
}
|
||||
});
|
||||
$("#allRecord").on("click", ".confirmEditUser", function() {
|
||||
|
|
Loading…
Reference in New Issue