KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Basic jquery question. I have an option element as below. <option class='select_continent' value='7'>Antarctica</option> jquery $(".select_continent").click(function () { alert(this.attr('value')); }); This gives an error saying this.attr is not a function so im not using "this" correctly. How can i get it to alert 7?
Tags (comma-separated)
Save Edits
Cancel