Well, I have been having issues with this for a while and just extensively researched it. How do I find the padding-left on a element in internet explorer. There are many ways in Chrome or Mozilla since .width, .innerWidth, .outerWidth, and a simple .css('padding-left') work but in IE they are not cooperating at all. For example.. I can use (width - innerwidth) / 2 to get the padding-left in Chrome and Mozilla but in IE it just says 0 because width and innerwidth somehow equal each other in ie.
I am using IE 9 to debug this...
Here are the results(in IE 9) of everything I have tried so far. NOTE: I can see "padding-left" with a value of 22px in ie 9 developer tools.
.width() : 530
.innerWidth() : 530
.outerWidth() : 530
.outerWidth(true) : 530
.prop('clientWidth') : 530
.prop('offsetWidth') : 530
.prop('scrollWidth') : 530
.css('padding-left') : 0px
.css('paddingLeft') : 0px
All I want is padding-left or someway to calculate it.
It says the plugin is for 1.4.x and when I try to use it with 1.6.2 it is outputting this error when I try to use:
Uncaught TypeError: Object function ( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context, rootjQuery ); } has no method 'cookie'
I have the jquery.cookie.js included in my head above when I call it. It is below the jquery library.
What do I need to do to make it work with the 1.6.2 on the plugin or what I am doing? I have never made a jquery plugin so I am not sure what is not supported anymore, etc. I do not really see anything suspicious from it from all the changelogs on the jquery library I have read.
So I need to create the equivalent of a radio group without using the name attribute. A radio group is just makes one radio selected at a time and this is automatically done if all the names are the same but that isnt an option for me. Here is an example of a normal radio group: http://jsfiddle.net/MadLittleMods/ECUW4/
I have looked up and researched many ways on how to do this but I haven't found an exact solution. I have tried to make my own script for this but I just can not remove the check from a radio button after it has been clicked.