SHIVA
SHIVA

Reputation: 107

DJANGO HTML TEMPLATES : How to know Selected item in drop Down and display In the html page without any action

I want to display the selected item info which is selected From the drop down in, the same html page without dong any action.How to know which item is selected and how to assign that selected value in a variable in html.

Upvotes: 0

Views: 272

Answers (1)

Rohan
Rohan

Reputation: 53326

You can use jQuery's onchange event handler to detect when choice is changed and also get the value. There is good example on the .change() api page.

Upvotes: 1

Related Questions