Latest Post
Tampilkan postingan dengan label basic html. Tampilkan semua postingan
Tampilkan postingan dengan label basic html. Tampilkan semua postingan

Append some (text/img) after some html element using jquery

Written By Unknown on Jumat, 13 September 2013 | 04.56

How to append some (text/img) after some html element using jquery 

<html>
    <head>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <script type="text/javascript" >
        $(document).ready(function(){
var i=0;
            $("#sub").on("click",function(){
$( "#1" ).append("Test "+i+" ... ");
                 i++;
                 });      
            });
 
        </script>
        </head>
    <body>
<div id="1">This is my test...</div>
<button type="button"  id="sub">Append</button>
</form>
</body>

</html>

Join us ...

Written By Unknown on Senin, 09 September 2013 | 22.24

Send value of checked checkboxes on next page

Written By Unknown on Jumat, 30 Agustus 2013 | 23.20

<html>
    <body>
<?php
if($_POST){

    echo "<pre>";
    print_r($_POST['test']);
    echo "</pre>";
    }
?>
<form action="#" method="post">
<input type="checkbox" name="test[]"  value="Test1">Test1<br>
<input type="checkbox" name="test[]"  value="Test2">Test2 <br>
<input type="checkbox" name="test[]"  value="Test3">Test3<br>
<input type="checkbox" name="test[]"  value="Test4">Test4 <br>
<input type="submit" name="submit">
</form>
<body>
 <html>

Add link in an image in html

Written By Unknown on Selasa, 27 Agustus 2013 | 23.40

<html>
<body>
<div style="border:1px solid; background-color:#EDEDED; height:auto ;width:320px;">
    <div style="background-color:#666683; height:30px ;width:320px;">
        <b><p style=" text-color:#ffffff;align=:center; margin: 0 70;">Web Coding Source </p></b>
        </div>
<a href="http://www.id-script.com/"><img border="1px" width="318px" height="250px" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8DosspTxpjWvqmoXGEJJ9_Dgh9-_4Hq_wBKB90bWGNDUJoSwKrJpLe8qs3OFjMlk8VmdaSaE5ESIA_T7gJNLgakWR8SMC8fdQN-46NFIczT-TLTsHTAc_5XSoVCoOt6LqufRwLiIcgLM/s1600/apache-mysql-php-phpmyadmin-300x187.jpg"/></a>
</div>
</body>
</html>

How to disable checkbox set using jquery ?

Written By Unknown on Senin, 26 Agustus 2013 | 05.10

If you got two set of checkboxes and you have to use one at a time ... then using this code when you click on either of checkbox set .. the other will get disabled..



<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" >
$(document).ready(function(){
    $( document ).on("click",function(){
        if($("input[name='test[]']:checked").val()){
        $('input:checkbox[name="test_2\[\]"]').attr('disabled', true);
        }
        if($("input[name='test_2[]']:checked").val()){
        $('input:checkbox[name="test\[\]"]').attr('disabled', true);
        }
        });
});
</script>
</head>
<body>


<form id="test_form">
    <b> Checkboxes1</b><br>
<input type="checkbox" name="test[]"   value="Test1">Test1<br>
<input type="checkbox" name="test[]"  value="Test2">Test2 <br>
<input type="checkbox" name="test[]"   value="Test3">Test3<br>
<input type="checkbox" name="test[]"  value="Test4">Test4 <br>
<b> Checkboxes2</b><br>
<input type="checkbox" name="test_2[]"   value="Test1">Test1<br>
<input type="checkbox" name="test_2[]"  value="Test2">Test2 <br>
<input type="checkbox" name="test_2[]"   value="Test3">Test3<br>
<input type="checkbox" name="test_2[]"  value="Test4">Test4 <br>
</form>

</body>
</html>

How to get value of clicked checkbox using name in jquery ?

Written By Unknown on Minggu, 25 Agustus 2013 | 23.31

<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" >
$(document).ready(function(){
    $( document ).on("click",function(){
        if($("input[name='test[]']:checked").val()){
        alert($("input[name='test[]']:checked").val());}
        });
});
</script>
</head>
<body>
<b> Checkboxes</b><br>

<form id="test_form">
<input type="checkbox" name="test[]"   value="Test1">Test1<br>
<input type="checkbox" name="test[]"  value="Test2">Test2 <br>
<input type="checkbox" name="test[]"   value="Test3">Test3<br>
<input type="checkbox" name="test[]"  value="Test4">Test4 <br>
</form>

</body>
</html>

How to add border in html div ?

Written By Unknown on Kamis, 22 Agustus 2013 | 22.53

Notice : solid in border

<html>
    <head>
        <title>
        Form
        </title>
    </head>
    <body>
        <div   align="center" style="border:1px solid ; background-color:#EA2343; height:400; width:700px;margin:0 auto;">
            Test
        </div>
    </body>
</html>

Align html div to center of page

<html>
    <head>
        <title>
        Form
        </title>
    </head>
    <body>
        <div   align="center" style="background-color:#EA2343; height:400; width:700px;margin:0 auto;">
            Test
        </div>
    </body>
</html>

How to send an array in url in php ?

Written By Unknown on Rabu, 21 Agustus 2013 | 23.04

File.php  (This file contain array )

<?php

$data = array('foo'=>'bar',
              'baz'=>'boom',
              'cow'=>'milk',
              'php'=>'script');

$arr=http_build_query($data);

?>
<a href="nextpage.php?<?php echo $arr; ?>">Sendarray</a>


--------------------------------------------------------------------------------------------------------------------------------

nextpage.php (This file will receive array and print it)


<?php
echo "<pre>";
print_r($_GET);
echo "</pre>";
?>

How to write your first php script ?

Written By Unknown on Selasa, 20 Agustus 2013 | 23.08

What you need ?

1. A server
2. A php file to be put in your www. or htdocs directory..

Phpfile

<?php

echo "My first PHP script!";
 

?>
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Kumpulan Kata Broadcast Blackberry - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger