0
Ich habe diese Funktion:Jquery, wie kann ich diese Selektorduplizierung vermeiden?
$('#barcode').JsBarcode($('#barcode').attr("data-barcode"), {
format:"EAN"
displayValue:true
fontSize:10
height: 22
marginLeft: 10
marginRight: 10
marginTop: 3
marginBottom: 0
})
Es funktioniert, aber ich will die Wiederholung vermeiden. Ich versuche mit this
und $this
ohne Erfolg ...
'$ this' und' this' funktionieren nur im Zusammenhang mit einer Funktion. –