Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#m4j-188').change(function() { // WENN SELECT CHANGED
$('#m4j-373').val(''); // TEXTFELD LEEREN
var selectValue = $(this).val(); // VALUE AUS SELECT
$('#m4j-373').val(selectValue); // TEXTFELD FÜLLEN
});
});
</script>
</head>
<body>
<form name="m4jForm" method="post">
<select id="m4j-188" class="m4jSelection" lang="0" style="width: 125px;" name="m4j-188">
<option value="">Anzahl waehlen</option>
<option value="2.50">1x</option>
<option value="5.00">2x</option>
<option value="7.50">3x</option>
<option value="10.00">4x</option>
<option value="12.50">5x</option>
</select>
<input type="text" id="m4j-373" name="m4j-373" value=""/><br>
</form>
</body>
</html>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#m4j-188').change(function() { // WENN SELECT CHANGED
$('#m4j-373').val(''); // TEXTFELD LEEREN
var selectValue = $('select#m4j-188 :selected').text(); // TEXT AUS SELECT
$('#m4j-373').val(selectValue); // TEXTFELD FÜLLEN
$('#m4j-373').value; update(); // TEXTFELD UPDATE
});
});
</script>
<option value="">Anzahl waehlen</option>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#m4j-188').change(function() { // WENN SELECT CHANGED
$('#m4j-373').val(''); // TEXTFELD LEEREN
var selectValue = $('select#m4j-188 :selected').text(); // TEXT AUS SELECT
$('#m4j-373').val(selectValue); // TEXTFELD FÜLLEN
$('#m4j-373').value; update(); // TEXTFELD UPDATE
});
});
</script>
</head>
<body>
<form name="m4jForm" method="post">
<select id="m4j-188" class="m4jSelection" style="width: 125px;" name="m4j-188">
<option value="">Anzahl waehlen</option>
<option value="2.50">1x</option>
<option value="5.00">2x</option>
<option value="7.50">3x</option>
<option value="10.00">4x</option>
<option value="12.50">5x</option>
</select>
<input type="text" id="m4j-373" name="m4j-373" value=""/><br>
</form>
</body>
</html>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#m4j-188').change(function() { // WENN SELECT CHANGED
$('#m4j-373').val(''); // TEXTFELD LEEREN
var selectValue = $('select#m4j-188 :selected').val(); // TEXT AUS SELECT
$('#m4j-373').val(selectValue); // TEXTFELD FÜLLEN
$('#m4j-373').value; // TEXTFELD UPDATE
});
});
</script>
</head>
<body>
<form name="m4jForm" method="post">
<select id="m4j-188" class="m4jSelection" style="width: 125px;" name="m4j-188">
<option value="">Anzahl waehlen</option>
<option value="2.50">1x</option>
<option value="5.00">2x</option>
<option value="7.50">3x</option>
<option value="10.00">4x</option>
<option value="12.50">5x</option>
</select>
<input type="text" id="m4j-373" name="m4j-373" value=""/><br>
</form>
</body>
</html>
<script type="text/javascript">
$(document).ready(function() {
$('#m4j-188').change(function() { // WENN SELECT CHANGED
$('#m4j-373').val(''); // TEXTFELD LEEREN
var selectValue = $('select#m4j-188 :selected').text(); // TEXT AUS SELECT
if(selectValue == 'Anzahl waehlen') {
selectValue = '';
}
$('#m4j-373').val(selectValue); // TEXTFELD FÜLLEN
$('#m4j-373').value; // TEXTFELD UPDATE
});
});
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#m4j-188, #m4j-189').change(function() { // WENN SELECT CHANGED
$('#m4j-373').val(''); // TEXTFELD LEEREN
var selectValue = $(this).val(); // VALUE AUS SELECT
$('#m4j-373').val(selectValue); // TEXTFELD FÜLLEN
});
});
</script>
<form name="m4jForm" method="post">
<table style="text-align: left; width: 100%;" border="1"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td>Core´s</td>
<td>
<select id="m4j-188" class="m4jSelection" lang="0" style="width: 125px;" name="m4j-188">
<option value="">Anzahl waehlen</option>
<option value="2.50">1 Core (2,50 €)</option>
<option value="5.00">2 Core (5,00 €)</option>
<option value="7.50">3 Core (7,50 €)</option>
<option value="10.00">4 Core</option>
<option value="12.50">5 Core</option>
</select>
</td>
</tr>
<tr>
<td>RAM</td>
<td>
<select id="m4j-189" class="m4jSelection" lang="0" style="width: 125px;" name="m4j-189">
<option value="">Anzahl waehlen</option>
<option value="2.50">1 GB (2,50 €)</option>
<option value="5.00">2 GB (5,00 €)</option>
<option value="7.50">3 GB (7,50 €)</option>
<option value="10.00">4 GB</option>
<option value="12.50">5 GB</option>
</select>
</td>
</tr>
<tr>
<td>SWAP</td>
<td></td>
</tr>
<tr>
<td>Speicher</td>
<td></td>
</tr>
<tr>
<td>IP-Adressen</td>
<td></td>
</tr>
<tr>
<td>Traffic</td>
<td></td>
</tr>
</tbody>
</table>
</form>
<input type="text" id="m4j-373" name="m4j-373" value=""/><br>
</form>
$(document).ready(function() {
// ID der Felder, die in die Berechnung einfließen sollen
var calcFields = ['#m4j-188', '#m4j-189'];
$('#m4j-188, #m4j-189').change(function() { // WENN SELECT CHANGED
var result = 0;
$.each(calcFields, function(index, value) {
var val = Number($(value).val());
// Werte der Felder addieren
result += isNaN(val) ? 0 : val;
});
// Ergebnis in Textfeld schreiben
$('#m4j-373').val(result);
});
});