makata Posted February 8, 2013 Share Posted February 8, 2013 http://jsbin.com/azipok/2/edit this piece of code does the trick of clearing up the option list of select menu and adding a "test" message, but this message becomes visible only upon dropping down the select menu. is there a way to make this "test" message display and replace the "no modules..." text upon clicking the button? Link to comment Share on other sites More sharing options...
dsonesuk Posted February 8, 2013 Share Posted February 8, 2013 The mobile code adds the selected option value to a span that it creates, you therefore need to access the prev sibling span element, then move through it child elements to the span you need to change and change html() to the value of selected option. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now