I\'m developing a web page using django and I want to add some javascript to a form using jQuery. Basically I want to select an option in a form depending on an another selectio
Just found something that works, using contains instead of the text='values' selector
not working for me
$("#id_adeudado option[text='{{ usuario.username }}']")
working
$("#id_adeudado option:contains('{{ usuario.username }}')")