Search
 
SCRIPT & CODE EXAMPLE
 

CSS

jquery .css not working

$("input:radio[name=show]").click(function(event){
    if (event.target.id == 'showleft') {
        document.getElementById('op').innerHTML='Left side';
        $('#cfwrapper').css({'left':'30px','right':'auto'});

    } else if (event.target.id == 'showright') {
        document.getElementById('op').innerHTML='Right side';
         $('#cfwrapper').css({'left':'auto','right':'30px'});
    }
});

or try this

.cfwrapper {
    bottom: 10px;
    left: 30px;
    position: fixed;
}

.cfwrapperDis{
    bottom: 10px;
    left: 30px;
    position: fixed;
}

$("input:radio[name=show]").click(function(event){
    if (event.target.id == 'showleft') {
        // remove property 'right:30px'
        // add property 'left:30px'
    } else if (event.target.id == 'showright') {
        $('#cfwrapper').removeClass("cfwrapper").addClass("cfwrapperDis"); // remove property 'left:30px'
        // add property 'right:30px'
    }
});
Comment

PREVIOUS NEXT
Code Example
Css :: nhandled Rejection (TypeError): Cannot read property 
Css :: easy way raise specificity css 
Css :: child width big 
Css :: sass preprocessor visual studio code 
Css :: Create a addition element in center and rotate it 
Css :: textxarea noresize 
Css :: add on click event on button on payment screen odoo pos 
Css :: thumb personalizzata wp 
Css :: target only mozilla css 
Css :: CSS or locator 
Css :: body .div csss 
Css :: CSS - The Class Selectors 
Css :: decroation of title using css 
Css :: css grepper 001 
Css :: chrome console remove css dark mode 
Css :: what is integrity cdn 
Css :: How to do addition or subtraction on CSS Variables? 
Css :: how can i make a menu bar appear by clicking an icon? in css? 
Css :: caching 
Css :: position relative and absolute difference in css 
Css :: repeating-conic-gradient css 
Css :: Do not use empty rulesetscss(emptyRules) 
Typescript :: typescript sleep 
Typescript :: count commits made by each person 
Typescript :: javax.validation.constraints does not exist 
Typescript :: Missing file extension "ts" for 
Typescript :: custom decorator in loopback4 
Typescript :: sequelize is not null 
Typescript :: serenity.-is add column picker button 
Typescript :: response.json results in pretty data python 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =