1. Wybrany napis w combo:
$('select[id$=ddObszary]').find('option:selected').text()
2. Wybrana wartość w combo:
$('select[id$=ddHale]').val()
3. Podświetlane wiersze w gridzie:
var p = $("table[id=ZamowieniaTable] tbody tr");
if (p != null) {
p.not(":first")
.hover(
function() { $(this).addClass("ui-state-hover") },
function() { $(this).removeClass("ui-state-hover") });
}
4. Funkcja do obsługi plus/minus przy grupowaniu wierszy w gridach:
function toggleGroup(img, numberOfRows) {
var tr = img.parentNode.parentNode;
var table = $('table#tableWyposazenieDodatkowe')[0];
var src = img.src;
var startIndex = tr.rowIndex + 2;
var stopIndex = startIndex + parseInt(numberOfRows);
if (src.endsWith('plus.png')) {
for (var i = startIndex; i < stopIndex; i++) {
$(table.rows[i]).show();
}
src = src.replace('plus.png', 'minus.png');
}
else {
for (var i = startIndex; i < stopIndex; i++) {
$(table.rows[i]).hide();
}
src = src.replace('minus.png', 'plus.png');
}
img.src = src;
}