mio Jade -valore Set di testo utilizzando il modello JQuery
input#main_search.span2(
style = 'height: 26px; width: 800px;' ,
type = 'text',
readonly='true',
name='searchBar',
value='test'
)
file di JS -
$('#searchBar').val('hi')
console.log('sup')
uscita Console -
sup
Ma searchBar
valore statistiche a prova. Che cosa sto facendo di sbagliato?