首页 > 解决方案 > How to get info button to appear and make it functional in jquery mobile or javascript

问题描述

attached you will see a photo of an app that is a unit converter. In the picture it has small info buttons that are clickable and when clicked, information correlating to the input section nexts to it shows as an alert in the app and relays information about that section. I am wondering how this is accomplished and if it can be done using jQuery mobile and or JavaScript. example photo I am referring to

标签: javascriptjqueryhtmljquery-mobile

解决方案


使用 jQuery

$("#id_of_button").click(function(){
 alert("Named after the " + input_value1.value + " who invented " + input_value2.value + " etc..."); // Insert the values from your form inputs into this alert function
  });

推荐阅读