I am fetching some data from a Google Places Api, I am using jquerymobile to show a user nearest places, the data comes in JSON I want to generate a set of buttons so is easy for user to click selected location.
The data is generated but the button is showed as a link with no style, even is the same code of another button with style. here is the code snippet.
$.each(pdata.results, function(key) {
if (key>0 && key<6) {
$('#dPlaces').append('<a href="#" data-role="button">'+pdata.results[key].name+'</a>');
} //endif
}); //each
Data is returned but no Button style.. the idea is I will put a onclick() to set some value and way a list of buttons but with JQM style.
thanks.
Norman
<a>but<button>or<input type='button'>?