2009-07-02 12 views

Odpowiedz

19

Spróbuj tego:

document.getElementById("in1").setAttribute("name", "submit_content"); 
+0

To jest idealne, bardzo dziękuję – mark

+0

To właściwie 'setAttribute' zamiast' addAttribute'. Naprawiłem to. – Gumbo

+0

Ten nie działa. Jakie jest rozwiązanie tego ... ?? setAttribute ("event.stopPropagation()") –

6
document.getElementById("in1").setAttribute("name", "submit_content"); 

lub przy użyciu jQuery:

$("#in1").attr("name", "submit_content"); 
+0

to dzięki wielkie dzięki – mark

Powiązane problemy