Hi,
I am using the following code:
<div class="example">
<p> <a href="#info" rel="facebox">View Facebox</a> </p>
<p> <input id="Button1" type="button" value="button" onclick="Get_Value();"/></p>
</div>
<div id="info" style="display:none;">
<p><input id="text1" name="text1" type="text" value="abc"/></p>
<p> <input id="Button2" type="button" value="button" onclick="Get_Value();$.facebox.close(); return;"/> </p>
<script type="text/javascript">
function Get_Value()
{
alert($('#text1').val());
var myTextField = document.getElementById('text1');
alert("You entered: " + myTextField.value)
}
</script>
The problem is that, in my alert statements, I am always getting the initial value 'abc' for the textbox text1; but not any value that is entered by the user when it is opened inside a facebox. Can anybody please help me out?