<input type="text" id="first_one" value="<?php echo $from_date ; ?>" />
Anchor Tag
In this section, there is an anchor tag. When clicked, a function is triggered.
<script type="text/javascript">
function newwin() {
var a = document.getElementById("first_one").value;
myWindow = window.open('try1.php?leadid=a', 'myWin', 'width=400,height=650');
}
</script>
The purpose of this function is to open a new window and pass the value from the textbox when the anchor tag is clicked. However, currently it is not working as expected. Can anyone assist me with this issue?