[Solved] My code dont works but I don’t know why [closed]

Change the data-target to the correct element id. In your case #bs-example-navbar-collapse-1 is the element id you want: <button type=”button” class=”navbar-toggle collapsed” data-toggle=”collapse” data-target=”#bs-example-navbar-collapse-1″ aria-expanded=”false” aria-controls=”navbar”> solved My code dont works but I don’t know why [closed]

[Solved] Why can’t I simply prepend text? [closed]

You are removing elements and then targeting them using prepend. You can’t prepend content to no more existing element. Target again the content of the DIV, using end(): DEMO jsFiddle var ur_text = “your text”; $(‘.booktext’).contents().filter(function(){ return this.nodeType !== 1; }).remove().end().prepend(‘your text’); 1 solved Why can’t I simply prepend text? [closed]

[Solved] How to remove empty th and td from thead and tbody from the HTML table which has no id, Jquery or Javascript

Try this: you can use parent div selector to find the table and then its header and td elements to check if these elements are empty and delete it $(function(){ $(“div.ui-datatable-tablewrapper table[role=grid] thead tr th”).each(function(){ var text = $(this).text(); if(!text && !$(this).find(‘input’).length) { $(this).remove(); } }); $(“div.ui-datatable-tablewrapper table[role=grid] tbody tr td”).each(function(){ var text = $(this).text(); … Read more

[Solved] Button won’t work in jQuery [closed]

Change C:/jquery-1.7.1.min to file:///C:/jquery-1.7.1.min and put each script inside it’s own script tag. <script src=”https://stackoverflow.com/questions/17322685/file:///C:/jquery-1.7.1.min”></script> <script> // your JS here </script> solved Button won’t work in jQuery [closed]

[Solved] I wanted to draw pie chart and bar chart into my php website [closed]

You will have to use a javascript charting library such as flot or jqplot. Another easy way is to use google visualization. https://github.com/aaronjorbin/flot-examples/blob/master/index.php http://www.jqplot.com/tests/ https://developers.google.com/chart/interactive/docs/reference There are many more libraries than this – do your research and choose the one that fits your needs. 2 solved I wanted to draw pie chart and bar chart … Read more

[Solved] copying an input from a text box to another [closed]

$(document).ready(function(){ $(‘#checkbox’).click(function(){ if($(this).is(‘:checked’)){ $(‘textarea#caddress’).val($(‘textarea#paddress’).val()); }else{ $(‘textarea#caddress’).val(”); } }); }); <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script> <td><label for=”address” style=”text-align: left;”>Permanent Address:<sup style=”color: red;”>*</sup> </label></td> <td><textarea cols=”20″ id=”paddress” name=”address1″ rows=”4″></textarea><i id=”pointadrs” style=”color: red;”></i> </td> <p><input type=”checkbox” name=”checkbox” id=”checkbox” class=”checkbox”>use same as my permenant address </p> <tr> <td><label for=”address” style=”text-align: left;”>Current Address:<sup style=”color: red;”>*</sup> </label></td> <td><textarea cols=”20″ id=”caddress” name=”address2″ rows=”4″></textarea><i id=”pointadrs2″ style=”color: … Read more

[Solved] My website doesn’t load jQuery [closed]

You made two mistakes: You put the link to the jQuery library inside the type attribute, instead of the src You are trying to load the scripts that make use of jQuery before jQuery itself Try this <script type=”text/javascript” src=”https://stackoverflow.com/questions/33256891/js/app/jQuery.min.js”></script> <script type=”text/javascript” src=”js/script.js”></script> 1 solved My website doesn’t load jQuery [closed]

[Solved] make new page without standard button [closed]

Well If I understand you correctly you are indeed looking to create a web-based chat application (like the Facebook chat), am I right? We won’t be able to provide code for you, that is your job, but instead I could give you a resource to a tutorial that you mind find useful. http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-simple-web-based-chat-application/ Or you … Read more

[Solved] How to disable all the above checkbox options If someone click on None of the above checkbox? [closed]

Please use this code I hope it’s helpful for you. Thanks <input type=”checkbox” name=”check” value=”father” class=”group1″>Father <input type=”checkbox” name=”check” value=”mother” class=”group1″>mother <input type=”checkbox” name=”check” value=”son & doughter” class=”group1″>son & doughter <input type=”checkbox” name=”check” value=”none” id=”none” class=”group1″>none $(function(){ $(“#none”).on(“click”,function(){ if (this.checked) { $(“input.group1”).attr(“disabled”, true); }else{ $(“input.group1”).attr(“disabled”, false); } }); }); solved How to disable all the … Read more

[Solved] Javascript Hide-Unhide HTML Text Box

This is an issue with your selector you are selecting the drop-down with a name using a # sign: and there’s also a problem with your selector #ref-col in your JS it should be like this #ref_col change your name to id=”pf_status” in your HTML like this and this will work: $(document).on(‘change’, ‘#pf_status’, function() { … Read more