Click here to Skip to main content
16,004,820 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionAdding a link to a table built in Javascript Pin
offroaderdan7-Jul-12 1:04
offroaderdan7-Jul-12 1:04 
AnswerRe: Adding a link to a table built in Javascript Pin
enhzflep8-Jul-12 22:17
enhzflep8-Jul-12 22:17 
AnswerRe: Adding a link to a table built in Javascript Pin
BobJanova9-Jul-12 1:52
BobJanova9-Jul-12 1:52 
AnswerRe: Adding a link to a table built in Javascript Pin
Sanjay K. Gupta9-Jul-12 3:44
professionalSanjay K. Gupta9-Jul-12 3:44 
AnswerRe: Adding a link to a table built in Javascript Pin
twseitex10-Jul-12 10:30
twseitex10-Jul-12 10:30 
QuestionProblem to add new field in javascript! Pin
Erika Silva4-Jul-12 23:33
Erika Silva4-Jul-12 23:33 
AnswerRe: Problem to add new field in javascript! Pin
Erika Silva5-Jul-12 0:14
Erika Silva5-Jul-12 0:14 
GeneralRe: Problem to add new field in javascript! Pin
Erika Silva5-Jul-12 5:45
Erika Silva5-Jul-12 5:45 
the problem is already solved Big Grin | :-D



var id = 1;
function novoCampo()
{
var inp = document.createElement("input");
inp.setAttribute("id", +id );
inp.setAttribute("name", "data_cadastro_"+id+"");
var lab = document.createElement("label");
lab.setAttribute("id", "l", +id);
lab.setAttribute("lab", +id);
var lab_content = document.createTextNode("");
var quebra = document.createElement("br");
var inpP = document.getElementById(id-1);
var parentInp = inpP.parentNode;
parentInp.insertBefore(lab, inpP.nextSibling);
parentInp.insertBefore(inp, lab.nextSibling);
parentInp.insertBefore(quebra, lab);

document.getElementById(+id).setAttribute('onclick',"javascript:popdate('document.form_funcionario.data_cadastro_"+id+"','pop3','150',document.form_funcionario.data_cadastro_"+id+".value)"); // for FF
//document.getElementById(+id).onclick = function() {javascript:popdate('document.form_funcionario.data_cadastro_'+id+'','pop3','150',document.form_funcionario.data_cadastro_+id+.value)}; // for IE


++id;
}


for those who are experiencing the same problem, this solution there... Big Grin | :-D
Questionautomatically break page in html code Pin
fsajjad4-Jul-12 1:41
fsajjad4-Jul-12 1:41 
Questionhow can zoom image in a datalist dynamically adding images Pin
shannya3-Jul-12 23:30
shannya3-Jul-12 23:30 
Questionfind words from group of letters in a statement using regularexpression Pin
siva4552-Jul-12 23:46
siva4552-Jul-12 23:46 
AnswerRe: find words from group of letters in a statement using regularexpression Pin
Niral Soni13-Jul-12 2:26
Niral Soni13-Jul-12 2:26 
GeneralRe: find words from group of letters in a statement using regularexpression Pin
Peter_in_278013-Jul-12 11:36
professionalPeter_in_278013-Jul-12 11:36 
Questionneed help to create a dynamic calendar! Pin
Erika Silva2-Jul-12 23:02
Erika Silva2-Jul-12 23:02 
AnswerRe: need help to create a dynamic calendar! Pin
V.4-Jul-12 3:41
professionalV.4-Jul-12 3:41 
GeneralRe: need help to create a dynamic calendar! Pin
Erika Silva4-Jul-12 3:55
Erika Silva4-Jul-12 3:55 
GeneralRe: need help to create a dynamic calendar! Pin
V.10-Jul-12 19:59
professionalV.10-Jul-12 19:59 
GeneralRe: need help to create a dynamic calendar! Pin
Erika Silva11-Jul-12 2:45
Erika Silva11-Jul-12 2:45 
GeneralRe: need help to create a dynamic calendar! Pin
V.11-Jul-12 2:53
professionalV.11-Jul-12 2:53 
GeneralRe: need help to create a dynamic calendar! Pin
Erika Silva11-Jul-12 2:56
Erika Silva11-Jul-12 2:56 
GeneralRe: need help to create a dynamic calendar! Pin
V.11-Jul-12 3:13
professionalV.11-Jul-12 3:13 
GeneralRe: need help to create a dynamic calendar! Pin
Erika Silva11-Jul-12 3:49
Erika Silva11-Jul-12 3:49 
GeneralRe: need help to create a dynamic calendar! Pin
V.11-Jul-12 3:54
professionalV.11-Jul-12 3:54 
GeneralRe: need help to create a dynamic calendar! Pin
Erika Silva11-Jul-12 3:58
Erika Silva11-Jul-12 3:58 
GeneralRe: need help to create a dynamic calendar! Pin
V.11-Jul-12 7:19
professionalV.11-Jul-12 7:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.