Как изменить цвет «Дополнительная информация» кнопку «Enter», и вот мой сценарий:Как изменить цвет моих кнопок?
$(document).on('pagebeforeshow', '#index', function(){
// Add a new select element
$('<select>').attr({'name':'select-choice-1','id':'select-choice-1','data-native-menu':'false'}).appendTo('[data-role="content"]');
$('<select>').attr({'name':'select-choice-2','id':'select-choice-2','data-native-menu':'false'}).appendTo('[data-role="content"]');
$('<option>').html('More info').appendTo('#select-choice-2');
$('<option>').html('Enter').appendTo('#select-choice-1');
$('<option>').attr({'value':'1'}).html('Instructions').appendTo('#select-choice-2');
$('<option>').attr({'value':'2'}).html('Bookings').appendTo('#select-choice-2');
$('<option>').attr({'value':'3'}).html('Newsletter').appendTo('#select-choice-2');
// Enhance new select element
$('select').selectmenu();
$(document).on('change', '#select-choice-2', function(){
alert($(this).find("option:selected").text());
});
});
действительно целесообразно помощь
Где находятся кнопки? –
Ваш jquery выглядит сломанным, вы используете какие-либо другие библиотеки javascript? – depperm
Дополнительная информация и введите мои кнопки – Student3434