Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

ssr_beautiful

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
   $("em").addClass("selected");
   $("#myid").addClass("highlight");
});

</script>
<style>
.selected { 
    color:red; 
}
.highlight { 
    background:yellow; 
}
</style>
</head>
<body>
<em title="Bold and Brave">This is first paragraph.</em>
<p id="myid">This is second paragraph.</p>
</body>
</html>

Test

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
   $("em").addClass("selected");
   $("#myid").addClass("highlight");
});

</script>
<style>
.selected { 
    color:red; 
}
.highlight { 
    background:yellow; 
}
</style>
</head>
<body>
<em title="Bold and Brave">This is first paragraph.</em>
<p id="myid">This is second paragraph.</p>
</body>
</html>

abcdfg

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
   $("em").addClass("selected");
   $("#myid").addClass("highlight");
});

</script>
<style>
.selected { 
    color:red; 
}
.highlight { 
    background:yellow; 
}
</style>
</head>
<body>
<em title="Bold and Brave">This is first paragraph.</em>
<p id="myid">This is second paragraph.</p>
</body>
</html>

surr

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
   $("em").addClass("selected");
   $("#myid").addClass("highlight");
});

</script>
<style>
.selected { 
    color:red; 
}
.highlight { 
    background:yellow; 
}
</style>
</head>
<body>
<em title="Bold and Brave">This is first paragraph.</em>
<p id="myid">This is second paragraph.</p>
</body>
</html>

adcb

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
   $("em").addClass("selected");
   $("#myid").addClass("highlight");
});

</script>
<style>
.selected { 
    color:red; 
}
.highlight { 
    background:yellow; 
}
</style>
</head>
<
>
<em title="Bold and Brave">This is first paragraph.</em>
<p id="myid">This is second paragraph.</p>
</body>
</html>

usss

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
   $("em").addClass("selected");
   $("#myid").addClass("highlight");
});

</script>
<style>
.selected { 
    color:red; 
}
.highlight { 
    background:yellow; 
}
</style>
</head>
<body>
<em title="Bold and Brave">This is first paragraph.</em>
<p id="myid">This is second paragraph.</p>
</body>
</html>

first-pj

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>


var url = "https://api.flickr.com/services/rest/";
var api_key = "c3478c8127e776fc838eb9a759367843";
var user_id = "52495277@N05";
var reqParams;

function getUserPhotosets() {
    var reqParams = {
        "method": "flickr.photosets.getList",
        "api_key": api_key,
        "user_id": user_id,
        "format": "json",
        "nojsoncallback": 1
    };
    $.getJSON(url, reqParams, getPhotosets);
}
 
function getPhotosets(data, status) {
    $.each(data.photosets.photoset, function(index, photoset){
        $("div ul").append("<li> <a href='https://www.flickr.com/photos/52495277@N05/albums/" + photoset.id +"'>" + photoset.title._content + "</a>" + photoset.visibility_can_see_set + "</li>");
    });
    
    $("div").append(status);
}
    //    $("div").text(data.photosets.photoset[2].title._content);
    //https://www.flickr.com/photos/52495277@N05/albums/72157683431222634

$(function() {
    getUserPhotosets();
});


</script>
</head>
<body>

<div>
    <ul>
        
    </ul>
</div>
    
</body>
</html>

Online jQuery Editor

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
   $("em").addClass("selected");
   $("#myid").addClass("highlight");
   $("p").css("color","red");
   $('.hid').click(function(){
       var $this = $(this);
       var greet = $("#greet");
       $this.toggleClass('hid');
       if($this.hasClass('hid')){
           $this.text('Hide');
           greet.show(1500);
       }else{
           $this.text('Show');
           greet.hide(1500);
       }
       
   });
   $('.rect'.click(function(){
   var div = $("div");
            div.animate({height: '300px', opacity: '0.2'}, "slow");
            div.animate({width: '300px', opacity: '0.4'}, "slow");
            div.animate({height: '100px', opacity: '0.6'}, "slow");
            div.animate({width: '100px', opacity: '0.8'}, "slow");
   
       
   });        
});

</script>
</head>
<body>
<button class="rect">Rechteck</button><br><br>
<button class="hid">Hide</button><br><br>
<em title="Bold and Brave">TEST</em><br><br>
<p id="greet">Hello</p><br>
<div style="background:#123456;height:100px;width:100px;position:absolute;"></div><br>
</body>
</html>

calculator

<!DOCTYPE html>
<!DOCTYPE html>

<html lang="en">
<head>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js">
</script>
<script>
$(document).ready(function() {
var prev="";
var a=0,b=0;
$("button").click(function() {

var num = $(this).text();

if(num=="+")
{
a = parseInt($("#screen").text());
op="+";
$("#screen").text("0");
prev="";
}
else if(num=="C")
{
$("#screen").text("0");
}
else if(num=="-")
{
a = parseInt($("#screen").text());
op="-";

$("#screen").text("0");
prev="";
}
else if(num=="*")
{
a = parseInt($("#screen").text());
op="*";

$("#screen").text("0");
prev="";
}
else if(num=="/")
{
a = parseInt($("#screen").text());
op="/";

$("#screen").text("0");
prev="";
}

else if(num=="=")
{
b = parseInt($("#screen").text());

switch (op) {
case "+":
var ans=a+b;
$("#screen").text("");
prev="";
$("#screen").text(ans);
break;
case "-":
var ans=a-b;
$("#screen").text("");
prev="";
$("#screen").text(ans);
break;
case "*":
var ans=a*b;
$("#screen").text("");
prev="";
$("#screen").text(ans);
break;
case "/":
var ans=a/b;
$("#screen").text("");
prev="";
$("#screen").text(ans);
break;
default:
text = "Looking forward to the Weekend";
} 
}
else
{
$("#screen").text(prev+num);

prev = $("#screen").text();
}
});
});
</script>
</head>

<!-- Styles -->
<style>
#screen{
background-color:#5F9EA0;
height:30px;
text-align: right;
font-family:arial;
font-weight:bold;

font-size:30px; 
}
#wrapper{
font-family:arial;
font-weight:bold;
width:230px;
height:350px;
background-color:#FFDAB9;
border:2px solid gray;
border-radius: 5px;

}
button {
font-family:arial;
font-weight:bold;
font-size:20px; 
display: inline-block;
width:50px;  
height:30px;
margin:10px;

} 
#zero{
width:120px;
margin-left:40px;
}

</style>
<body>
<div id="wrapper">

<div id="screen">
0</div>
<div id="pad">
 <button>1</button><button>2</button><button>3</button><button>4</button><button>5</button>
 <button>6</button><button>7</button><button>8</button><button>9</button>
 <button>+</button>
 <button>-</button>
 <button>*</button>
 <button>/</button>
<button>C</button>
 <button>=</button>
<button id="zero">0</button>   

</div>
<div class="reset">
</div>
</div>
</body>
</html>

test_premier

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
   $("em").addClass("selected");
   $("#myid").addClass("highlight");
});

</script>
<style>
.selected { 
    color:red; 
}
.highlight { 
    background:yellow; 
}
</style>
</head>
<body>
<em title="Bold and Brave">This is first paragraph.</em>
<p id="myid">This is second paragraph.</p>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.