jQuery UI Widgets › Forums › Editors › Button, RepeatButton, ToggleButton, LinkButton › Buttons with images disabled
Tagged: Angular button, Button, button with image, click event, disabled, disabled button, jQuery Button, jqxButton
This topic contains 5 replies, has 2 voices, and was last updated by pepe 7 years, 8 months ago.
-
Author
-
Goodnight.
Buttons with images disabled ignore the click event . It is right?<!DOCTYPE html>
<html lang=”en”>
<head>
<title>jQuery Button Sample1</title>
<link rel=”stylesheet” href=”../../jqwidgets/styles/jqx.base.css” type=”text/css” />
<meta name=”keywords” content=”jQuery, Button, Toggle Button, Repeat Button, Link Button, Help Documentation” />
<script type=”text/javascript” src=”../../scripts/jquery-1.11.1.min.js”></script>
<script type=”text/javascript” src=”../../jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”../../jqwidgets/jqxbuttons.js”></script>
</head>
<body class=’default’>
<div id=’content’>
<script type=”text/javascript”>
$(document).ready(function () {$(“#jqxButton”).jqxButton({
width: ‘100’,
height: ’50’,
disabled: true,
imgSrc: ‘../../images/andrew.png’
imgWidth: 25,
imgHeight: 25,});
$(“#jqxButton”).on(‘click’, function () {
alert(‘Button Clicked’);
});});
</script><div style=’width: 150px;’ id=’jqxWidget’>
<div>
<input type=”button” id=’jqxButton’ />
</div>
</div>
</div>
</body>
</html>Hello pepe,
Your code’s syntax is incorrect – you are missing a comma after
imgSrc: '../../images/andrew.png'
. Aside from that, if a button is disabled, its click event should not be triggered. However, currently the event will be fired if the button image is clicked. We have created a work item for this issue and will try to fix it in a future version of jQWidgets.Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Dimitar thank you very much .
a greetingFor when the solution to this problem?
a greetingHello pepe,
Unfortunately, this issue has not yet been resolved and we cannot provide you with an ETA of the fix for it. We are sorry for the inconvenience.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/VERY WELL, THANKS
-
AuthorPosts
You must be logged in to reply to this topic.