for this you have to save the path of the text file in the value of the option in select and may be you can do this dynamically
as below
<select id="myselect">
<option value="url_to_text_file_on_server">link</option>
</select>
then to open the text file you can use the window.location of javascript for opening the html file as below
$("#myselect").change(function(){
window.location = $( "#myselect option:selected" ).val();
});
jsFiddlelink See this for live demo
UPDATE
To add a select widget to your page, start with a standard select element populated with a set of option elements. Set the for attribute of the label to match the ID of the select so they are semantically associated. Wrap them in a div with the data-role=”fieldcontain” attribute to help visually group it in a longer form.
for jquery mobile
html part
<div data-role="fieldcontain">
<label for="myselect" class="select">Choose shipping method:</label>
<select name="myselect" id="myselect">
<option value="url_to_text_file_on_server">link</option>
</select>
</div>
script should go in document ready function in the botton
$(document).ready(function(){
$("#myselect").on("change",function(){
window.location = $( "#myselect option:selected" ).val();
});
});
3
solved How to create search tab and open the .txt file? [closed]