1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
des fonctions pouvant se servir du js et des appels à des "WS" c# et des fonctions du document global.js
//j'ai également vider ces fonctions le probleme persiste
$.fn.hideOption = function () {
this.each(function () {
if ($(this).is('option') && (!$(this).parent().is('span'))) {
$(this).wrap('<span>').hide()
}
});
}
$.fn.showOption = function () {
this.each(function () {
if (this.nodeName.toLowerCase() === 'option') {
var p = $(this).parent(),
o = this;
$(o).show();
$(p).replaceWith(o)
} else {
var opt = $('option', $(this));
$(this).replaceWith(opt);
opt.show();
}
});
}
$().ready(function () {
//mon code jquery qui appelle les fonctions du dessus
}); |
Partager