Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
Jquery function to compare background image of button when button click
Hi,
I want to comape background image of button when button click,my code is
*********************************************************
js file
$(document).ready(function() {
$(“#mt1”).click(function() {
if (document.getElementById(“mt1”).style.backgroundImage === “url(‘images/cmst1.png’)”)
{
alert(“hello world”);
}
});
******************************************************
css file
.imghr
{
background:transparent;
background-image:url(‘images/cmst1.png’);
height:20px;
width:120px;
background-repeat: no-repeat;
border:none;
outline:none;
display:block;
margin-top:10px;
text-align:center;
}
**************************************
Html file
<button type=”button” id=”mt1″ class=”imghr”></button>
*******************************************
my code does not give me what i want,please help me as soon as possible.
thanks in advance
Thanks and regards
Mohit Kumar
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio