Cytat(kefirek @ 18.07.2009, 21:44:56 )

To dziwne ale ja czegoś takiego nie mam mogę normalnie w każde pole coś wpisać

heh dziwne;/ może to przez to, że mam jakieś 50 kart otwarte hehe i czasami potem świruje FF
a więc czy tak będzie dobrze?
new_input2.attr("name", "zkim");
czli wyjdzie coś takiego:
<script src=\"http://code.jquery.com/jquery-latest.js\">
label {
display: block;}label a{
color: #CC0000;
text-decoration: none; margin-left: 5px;
}
label a:hover{
text-decoration: underline;
}
$(document).ready(
function()
{
$(\"#Dodaj zastepstwo\").click(function()
{
new_text = ('Za kogo ');
var new_label = $(\"\");
var new_input = $(\"\");
new_input.attr(\"type\", \"text\");
new_input.attr(\"name\", \"zakogo\");
new_text1 = (' czas ');
var new_label1 = $(\"\");
var new_input1 = $(\"\");
new_input1.attr(\"type\", \"text\");
new_input1.attr(\"name\", \"czas\");
new_text2 = (' z kim ');
var new_label2 = $(\"\");
var new_input2 = $(\"\");
new_input2.attr(\"type\", \"text\");
new_input2.attr(\"name\", \"zkim\");
//%%%%%%%%%55a option tak?%%%%%%%5
new_text4 = (' klasa ');
var new_label2 = $(\"\");
var new_input2 = $(\"\");
//? \ \ \ \ a gdzie dać zawartość tego pola? \ \ \ \ \ ?
new_input4.attr(\"name\", \"klasa\");
new_link.attr(\"href\", \"#\");
new_link.html(\"Usuń\");
new_link.click(function()
{
$(this).parent(\"label\").remove();
return false;
});
new_label.append(new_text);
new_label.append(new_input);
new_label.append(new_text1);
new_label.append(new_input1);
new_label.append(new_text2);
new_label.append(new_input2);
new_label.append(new_link);
$(\"form[name=formularz]\").append(new_label);
return false;
});
});
?>