last day (14 days later) » 

10:19 AM
1
A: Single quotes with in javascript double quote

Pranav C BalanEscape " using escape notaion \". strinner = ".... data-inputmask=\"'alias': 'dd/mm/yyyy'\" .......";

 
thanks.it worked.But I think this will solve my real problem.But didn't;-(
 
@VimalS : what you mean by real problem ?
 
@ Pranav C Balan-my date mask is not working
 
@VimalS : can you create a jsfiddle.net with your code?
 
@ Pranav C Balan-It's apart of a project.The date mask of the adminLte is not working when i am dynamically creating these fields.
 
10:19 AM
@VimalS maybe it doesn't care about dynamic elements... either you need to reinitialize it after dynamic element added.... which plugin is using for masking?
 
@ Pranav C Balan-input mask plugin in AdminLte-
 
@VimalS : after element is dynamically added .. try Inputmask().mask(document.querySelectorAll("input"));
 
@ Pranav C Balan-no pranav it doesn't work..thankyou for your help
 
@VimalS : for make it work you need to share the exact mask plugin info :)
 
athe brothere.ningalu malayali alle
 
10:21 AM
yes
 
ningalu adminLTe use cheythitundo
?
 
nammalde projectil frontendl use cheyyanind
but njan backend developer anu
 
athnakathu avanmar tharunna oru plugin undu.input maskinte..
njan ee same sadanam html page nakathu usiyappo workavuunundu
bt enku oru add more button undu..athnu vendi javascrit vachu field add cheyumbo ithu workavunnila
 
ok fine
let me check
ahhh ad more button handler script share cheyyuo?
click event handler
 
function add_more()
{
var numrows=parseInt(document.frm_add_announcement.cnnumrows.value)+1;
var strinner="";
var ni = document.getElementById('content');
var newdiv = document.createElement('div');
var divIdName = 'my'+numrows+'Div1';
newdiv.setAttribute('id',divIdName);

document.frm_add_announcement.cnnumrows.value=numrows;
//alert("asdAS");

strinner="<legend>Attachment "+numrows+" </legend><div class='row'> <div class='col-md-4'><div class='form-group'><input type='text' id='attachment_caption"+numrows+"' name='attachment_caption"+numrows+"' placeholder='Attachment caption' class='for
 
10:32 AM
Inputmask().mask(document.querySelectorAll("input")); eee code
idinde thazhe ittu nokk ni.appendChild(newdiv);
 
10:50 AM
illa bhai..onnm nadanilla..
njan padichu thudangiyitte ullu javascriptokke.chilappo nte valla mistakkum aayrkm
help cheythathinu thanks bhai..have agood day
;-)
 

last day (14 days later) »