[Solved] Cannot access json with getJson function

Try this: $(document).ready(function (){ $.getJSON(‘myurl.com/myFile.json’,function(result){ alert(result); }); }); It should be $(document).ready not $(document).read Remove the extra a after the alert. Remove the extra bracket after the url ‘myurl.com/myFile.json’) <– This one Please have a look at the jQuery API before starting something new. 2 solved Cannot access json with getJson function

[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] jQuery reuse of CSS-hover? [closed]

1) a event that activate and deactivate the CSS houver; 2) a complex selector logic. In both examples mentioned above, you STILL CAN use CSS classes. Simply perform a toggleClass using jQuery for a specially-defined class that overrides the default hover functionality. Example, you have this: .myElement { color: green; } .myElement:hover { color: red; … Read more

[Solved] How can I make a similar application using street view?

You code it 🙂 Start by looking into Google Maps API, look closely into overlay (ex: https://developers.google.com/maps/documentation/javascript/examples/overlay-simple) and you should be able to do it if you have some programming knowledge. On the link you posted, the “choose table” button shows/hides some markers (you will probably strugle a bit positioning them above ground level), while … 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] 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