[Solved] how to add this jquery to mysite [closed]

this should work … $(document).ready(function() { $(“#web”).click(function () { $(“#contweb”).stop().slideToggle(); return false; }); $(“#web”).hover(function () { $(this).stop().css({ “cursor”: “pointer” }) }); $(“#screen”).click(function () { $(“#contscreen”).stop().slideToggle(); return false; }); $(“#screen”).hover(function () { $(this).stop().css({ “cursor”: “pointer” }) }); $(“#keyboard”).click(function () { $(“#contkey”).stop().slideToggle(); return false; }); $(“#keyboard”).hover(function () { $(this).stop().css({ “cursor”: “pointer” }) }); }); 3 solved how … Read more

[Solved] Javascript script stopped working and i can’t figure out why? [closed]

Just in order to help you… Add jQuery to used Frameworks & Extensions on the left, and fix multiple syntax errors. I strongly recommend you to use proper code formatting and debugging tool (e.g. Chrome Development Tools or Firebug). DEMO: jsfiddle.net/qA8Ur/1/ 2 solved Javascript script stopped working and i can’t figure out why? [closed]

[Solved] Group checkboxes in JSFiddle: Part2 [closed]

Register a callback which will check whether all the checkboxes in the current group is checked or not $(‘input[id^=checkall]’).click(function(){ $(this).closest(‘fieldset’).find(‘input’).not(this).prop(‘checked’,this.checked); }); $(‘:checkbox’).not(‘[id^=checkall]’).click(function(){ var all = $(this).closest(‘fieldset’).find(‘[id^=checkall]’); var chks = $(this).closest(‘fieldset’).find(‘input’).not(all); all.prop(‘checked’, chks.length == chks.filter(‘:checked’).length); }) Demo: Fiddle solved Group checkboxes in JSFiddle: Part2 [closed]

[Solved] append dropdown box selections to a textbox [closed]

To achieve this, you would have to create a function that gathers all the values then formats them in the way you want. An example of this would be: function generate(){ var result=””; result += document.getElementById(‘drop1’).value + ‘ – ‘; result += document.getElementById(‘drop2’).value + ‘ – ‘; result += document.getElementById(‘drop3’).value + ‘ – ‘; result … Read more

[Solved] Group checkboxes in JSFiddle : Part 1 [closed]

You have some issues in your function: Try this way: Js function CheckAllClick(elem) { $(elem).closest(‘fieldset’).find(‘:checkbox’).prop(‘checked’, elem.checked); } Markup <input type=”checkbox” ID=”checkall1″ onclick=”CheckAllClick(this);”>Check all</div> Fiddle Pass the element in the onclick function as this and access it in your code. If you can go with jquery approach then: Add a class to your checkall check boxes … Read more