Friday, July 29, 2022

JQuery button with function with HTML button get value with Class name

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript">
var value = $('.txtTest').val();
</script>

<input runat="server" id="txtTest" value="test" class="txtTest" />

No comments:

Post a Comment