{"action":"opened","issue":{"url":"https://api.github.com/repos/yyx990803/vue/issues/1160","labels_url":"https://api.github.com/repos/yyx990803/vue/issues/1160/labels{/name}","comments_url":"https://api.github.com/repos/yyx990803/vue/issues/1160/comments","events_url":"https://api.github.com/repos/yyx990803/vue/issues/1160/events","html_url":"https://github.com/yyx990803/vue/issues/1160","id":100975504,"number":1160,"title":"change value of the button","user":{"login":"lithstud","id":12952983,"avatar_url":"https://avatars.githubusercontent.com/u/12952983?v=3","gravatar_id":"","url":"https://api.github.com/users/lithstud","html_url":"https://github.com/lithstud","followers_url":"https://api.github.com/users/lithstud/followers","following_url":"https://api.github.com/users/lithstud/following{/other_user}","gists_url":"https://api.github.com/users/lithstud/gists{/gist_id}","starred_url":"https://api.github.com/users/lithstud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lithstud/subscriptions","organizations_url":"https://api.github.com/users/lithstud/orgs","repos_url":"https://api.github.com/users/lithstud/repos","events_url":"https://api.github.com/users/lithstud/events{/privacy}","received_events_url":"https://api.github.com/users/lithstud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-14T09:39:47Z","updated_at":"2015-08-14T09:39:47Z","closed_at":null,"body":"Hi,\r\n\r\nThis is not actually an issue with the framework, but rather a question for help. \r\nI have a button, which opens a dropdown (bootstrap). Once I click the li from the dropdown, it should change the span text which is inside that button. Basically it simulates select tag. In jquery, I have this function which works perfectly. \r\n\r\n    function changeCategory() {\r\n        $dropdown = $('ul.dropdown-menu li');\r\n        $dropdown.click(function() {\r\n            var category = $(this).find('a').text();\r\n            $category_button = $('.category span.text');\r\n            $category_button.text(category);\r\n        })\r\n     }\r\n\r\nI'm trying to migrate most of the code to Vue.js and I'm just struggling with this. How would I do the same thing in it? I'm sure it's a simple thing but I'm just missing something. \r\nThanks."}}