Forums
How to format the text box to get the input value and fetch in the script? - Printable Version

+- Forums (https://bdn.bdb.ai)
+-- Forum: BDB Knowledge Base (https://bdn.bdb.ai/forumdisplay.php?fid=13)
+--- Forum: BDB Dashboards Designer (https://bdn.bdb.ai/forumdisplay.php?fid=43)
+---- Forum: BDB Designer Q & A (https://bdn.bdb.ai/forumdisplay.php?fid=16)
+---- Thread: How to format the text box to get the input value and fetch in the script? (/showthread.php?tid=543)



How to format the text box to get the input value and fetch in the script? - archana - 12-23-2022

In text box component, under properties in display content need to add this script:

<style>input:focus {outline:none;}::placeholder</style><input id="Target_filter_search01" autocomplete="off" placeholder="Enter Your Name"
style = "width: 100%; height : 100%; padding :0px 0px 0px 10px;border : 0px; border-radius: 0px; background : #f2f0f0;"/> 
<style> input:focus { outline:none; } </style> <script>

To get the value, in scripting side:

var a = $('#Target_filter_search01').val();