<form id="myForm" method="get">
<input type="text" name="name" value="Ваше имя">
<input id="send" type="submit" name="send" value="Отправить">
</form>
$( "#btn-yes" ).click(function() {
$( "#myForm" ).submit();
});
var i = 1;
$('#left').click(
function() {
if(i<2) {
i = 4;
} else {
i--;
}
alert(i);
}
);
$('#right').click(
function() {
if(i>3) {
i = 1;
} else {
i++;
}
alert(i);
}
);
<?php
$num = file_get_contents('https://blockchain.info/tobtc?'.http_build_query($_GET));
echo $num;
(function($){
$(document).ready(function() {
$.ajax({
type: "GET",
url: "http://localhost/cross.php?currency=USD&value=100",
dataType : 'text',
success: function(html) {
alert(html);
}
});
});
})(jQuery);
span {color: red;}
media (min-width: 1200px) {
.my-class{background-color: black;}
span {color: green;}
}
media (max-width: 767px) {
.my-class{background-color: green;}
span {color: black;}
}