To Get the Hidden Input Field Value Using Jquery
<div class="divButtons">
<a data-toggle="modal" href="#windowTitleDialog" class="product_id">Set Window Title</a>
<input type="hidden" id="h_v" class="hv" name="rahul" value="<?php echo $_item->getId(); ?>">
</div>
<script>
jQuery(document).ready(function()
{
jQuery(".product_id").click(function()
{
var key=jQuery(this).parent().find(".hv").val();
alert(key);
});
});
</script>
<a data-toggle="modal" href="#windowTitleDialog" class="product_id">Set Window Title</a>
<input type="hidden" id="h_v" class="hv" name="rahul" value="<?php echo $_item->getId(); ?>">
</div>
<script>
jQuery(document).ready(function()
{
jQuery(".product_id").click(function()
{
var key=jQuery(this).parent().find(".hv").val();
alert(key);
});
});
</script>
Comments
Post a Comment