Answer the question
In order to leave comments, you need to log in
Why might jQuery not work in Firefox?
Hello. Tell me why the form in Mozilla may not work. Works everywhere. But not in the mozilla.
jQuery(document).ready(function() {
if (jQuery.cookie('less') == null ){
jQuery.cookie('less', {
expires: null,
path: '/',
});
jQuery.fancybox.open({
padding : [0, 0, 50, 0],
helpers: {
overlay: {
locked: false
}
},
wrapCSS : "read-less",
href: "#read-less"
});
}
jQuery('.popul_button').click(function () {
jQuery(this).parents('form').submit();
});
<input type="radio" class="check" <?=($less["ID"] == $selected_less_id) ? 'checked' : ''?> name="less" id="less_<?=$less["ID"]?>" value="<?=$less["ID"]?>" />
Answer the question
In order to leave comments, you need to log in
The easiest option in this case is to help jQuery find your Input. And FF swears at the word null. Here's the option that works for me
jQuery(document).ready(function() {
if (jQuery.cookie('less') != "Y" ){ //убираем Null здесь
jQuery.cookie('less,'Y', {
path: '/',
});
jQuery.fancybox.open({
padding : [0, 0, 50, 0],
helpers: {
overlay: {
locked: false
}
},
wrapCSS : "read--less",
href: "#read--less"
});
}
jQuery('.popul_button').click(function () {
jQuery(this).find('input').prop('checked', true); //нашли верный input И работаем
jQuery(this).parents('form').submit();
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question