My goal is to dynamically hide or show specific anchor buttons based on certain conditions, but I am currently facing issues with this functionality.
Within my jQuery Mobile setup, I have multiple anchor buttons that follow a similar structure:
<a id="lteAlabamaButton" href="#" data-role="button" data-inline="true" onclick="lteGaugeRefresh('Alabama')">Alabama</a>
<a id="lteArkansasButton" href="#" data-role="button" data-inline="true" onclick="lteGaugeRefresh('Arkansas')">Arkansas</a>
. . .
I have attempted to hide the buttons using $(buttonId).hide()
, but this method has not yielded the desired results. Additionally, I have tried adjusting the display property using .css('display','none')
, with no success.
It is important to note that these anchor buttons are located within the content section of a jQuery mobile popup.