Widget:DrugPriceCompar: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<div id="goodrx_compare-price_widget"> </div> | <div id="goodrx_compare-price_widget"> </div> | ||
<script> | <script> | ||
function compareDrugs() { | |||
$("#executeGo").click( function(){ | |||
var _grxdn = $("#drugName").val(); | |||
function goodRX(d,t){ | |||
var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; | |||
g.src="//s3.amazonaws.com/assets.goodrx.com/static/widgets/compare.min.js"; | |||
s.parentNode.insertBefore(g,s); | |||
} | |||
}); | |||
} | } | ||
$(document).ready(compareDrugs); | |||
</script> | |||
Select Drug to Compare: <select id="drugName"> | Select Drug to Compare: <select id="drugName"> | ||
<option>{$drugName1}</option> | <option><!--{$drugName1}--></option> | ||
<option>{$drugName2}</option> | <option><!--{$drugName2}--></option> | ||
<option><!--{$drugName3}--></option> | |||
<option><!--{$drugName4}--></option> | |||
<option><!--{$drugName5}--></option> | |||
</select><br /> | </select><br /> | ||
<input type="button" id="executeGo" value="See Prices" /> | |||
</includeonly> | </includeonly> |