I want to hide one button on many buttons in a div using the button name. Is it possible?I tried
$("#showButtons").hide('input[name:buttonName]');
But it removes all the buttons in this div.
Edit
to
$("#showButtons input[name='buttonName']").hide();
if the input is inside #showButtons
#showButtons
You are looking for:
$("input[name=buttonName]").hide();
Or hide the buttons found in the showButtons div:
showButtons
$("#showButtons input[name=buttonName]").hide();
You specify the class name of the button with the jquery hide function
<script type="javascript"> $('.button1').hide(); </script>
you can use
$("input[name='myButton']").hide();
OR
$("input[name='myButton']").css({ 'display' : 'none' });
You can use -
$(document).ready(function(){ $("input[name='sb_Second']").hide(); });
To try