Skip to content

Instantly share code, notes, and snippets.

View udibagas's full-sized avatar

udibagas udibagas

View GitHub Profile
<?php
$json_string = '[{"overall":"25"}]';
$json_array = json_decode($json_string);
echo $json_array[0]->overall;
?>
$('select').change(function() {
if (this.val() == 6) {
$('#un').disabled = false;
$('#uas').disabled = false;
} else {
$('#un').disabled = true;
$('#uas').disabled = true;
}
});
<?php
$sql = mysql_query('SELECT * FROM jurusan WHERE jml_siswa < 30');
?>
<select name="pil_satu">
<?php while ($data = mysql_fetch_array($sql)) : ?>
<option value="<?php echo $data['id']; ?>"><?php echo $data['nama']; ?></option>
<?php endwhile; ?>
</select>
<table style="background-image: url(http://office.travelairpng.com/images/11.png);" cellpadding="5" cellspacing="0">
<tbody>
<tr>
<td class="toptext" colspan="2">
Top text
</td>
</tr>
<tr>
<td class="lefttext" rowspan="2">
<div class="vertical-text">Mount Hagen</div>
@udibagas
udibagas / submit.html
Created March 28, 2013 05:35
ajax submit form dengan jquery
<!--
FORM DI SINI
-->
<div class="html-response"></div>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">