Archiv für Mai 2009
30. Mai 2009 - Russisches Roulette für Unix Admins
Hehe, das ist ja wie Russisches Roulette für Unix Admins:
root@box:~$ [ $[ % 6 ] == 0 ] && rm -rf / || echo *Click*
Gefunden auf: http://www.commandlinefu.com/commands/browse
Abgelegt in Linux, Lustiges | Keine Kommentare »
28. Mai 2009 - Radiobuttons und jQuery
Ich werde es mir nie merken können, wie man Radiobuttons mit jQuery “checked”, dabei ist es so einfach! Da ich mir nicht mal merken kann wo ich die Lösung zu diesem Problem finde muss ich jedes mal Googlen:
<input type=”radio” name=”action” id=”action_replace” value=”replace” />
<input type=”radio” name=”action” id=”action_delete” value=”delete” />
<script type=”text/javascript”>
$(“input[@name=\'action\']“).val(“replace”);
$(“#action_replace”).attr(“checked”,”checked”);
</script>
Abgelegt in Programmieren | Keine Kommentare »