Phonegap Application Learning
1. How to Refresh the listview in JQuery Mobile Application.
$('#ojt_list').listview().listview('refresh');
ojt_list ==> call div of ul --> Id
ex. <ul id="ojt_list" data-role="listview" data-inset="true">
2. How to Refresh the Div in JQuery Mobile Application.
$( "#ojt_quiz_views" ).find( "ul" ).listview().listview( "refresh" );
ojt_quiz_views ==> call Div Id
ex. <div data-role="content" id="ojt_quiz_views" ></div>
3. How to Refresh the Div in JQuery Mobile Application.
$('input[type=button]').button().trigger('create');
4. How to Refresh the <select name="" id="evolitionmodule"></select>?
$('#evolitionmodule').empty().append(content).selectmenu('refresh');
5. how to get the radio button value if checked radio button.
var id_gen ="your radio button name";
var option_value =document.querySelector('input[name="'+id_gen+'"]:checked').value;
(OR)
var radioValue = $('input[name="'+id_gen+'"]:checked').val();
No comments:
Post a Comment