[Solved] Use different stylesheet for PHP include [closed]

That’s how CSS works. Any CSS file loaded in a page is applied to every element on the page. If you don’t want your another_css.css file affecting the footer, make its rules specific to the elements you want to affect. i.e. <div id=”midContent”><?php include(‘midcontent.php’); ?></div> <style> #midContent a { color: pink; } </style> solved Use … Read more

[Solved] why fadeIn() function is not working? [closed]

Use the Error console of your browser to tackle JavaScript problems. First of all you are not closing the FadeIn() function parameter and the method itself. EDIT : Second problem here is your selector for the fadeIn(). When using an “#” as selector you are selecting by id, but you have no element with id … Read more

[Solved] how to change color of first some characters based on limit and leave others as it is inside div

I have created a fiddle for your query. I hope that would solve your query. $(‘textarea’).on(‘input’, function() { var word = 0, lastLetter; $(‘#output > span’).text(”); this.value.split(”).forEach(function(letter, i) { if (letter === ‘ ‘ && lastLetter !== ‘ ‘) word++; lastLetter = letter; if (word < 5) { $(‘#output span:first’).append(letter); } else { $(‘#output span:last’).append(letter); … Read more

[Solved] Is this prepared statement?

Yes you are using a prepared statement with a parameter. That’s the right thing to do. Parameters are the best way to write safe SQL statements in the majority of cases. There are just a few edge cases where they don’t help (see my answer to how safe are PDO prepared statements) I can suggest … Read more

[Solved] Select checkboxes on the basis of previously selected checkbox

ok, so here you go: $(document).ready(function(){ $(document).find(‘input[name^=”checkBoxName”]’).click(function() { var class_name = $(this).attr(‘class’); $(document).find(‘input[name^=”checkBoxName”]’).not(‘.’+class_name).attr(‘disabled’, $(this).is(‘:checked’)); }); }); 7 solved Select checkboxes on the basis of previously selected checkbox

[Solved] Creating a drop down menu [closed]

If I understand it right, you want a drop down to occur when you hover over the text of the drop-down. <!DOCTYPE html> <html> <head> <style> .dropbtn { background-color: #4CAF50; color: white; padding: 16px; font-size: 16px; border: none; cursor: pointer; } .dropdown { position: relative; display: inline-block; } .dropdown-content { display: none; position: absolute; background-color: … Read more

[Solved] jQuery not working on homepage [closed]

You’re trying to use jQuery before you’ve included it: <script>$(document).ready(function() { $(“a.register”).fancybox({ ‘type’: ‘iframe’ }); }); </script> <script src=”http://code.jquery.com/jquery-1.8.1.min.js”></script> Ensure that this is first: <script src=”http://code.jquery.com/jquery-1.8.1.min.js”></script> 1 solved jQuery not working on homepage [closed]

[Solved] Selected item, doesn`t work [closed]

After read this comment : Hover is ok, but i want to remain activ that hover after I click on it Take the hover class a make a new one : CSS .active { /*css of the hover */ } Jquery $(‘.btn’).on(‘click’, function() { $(this).addClass(‘active’); //if you want to toggle it use toggleClass(‘active’) instead of … Read more