skip to Main Content

jQuery code is too long, need help to simplify

This code is working, but I was looking to get this simplified. I don't know how to make this work in a very simple way. Looking forward for everyone's help. Any idea is welcome. jQuery("#state-of-the-art .fl-tabs-label").click(function() { stateOftheArt(); }); jQuery("#everything-you-need…

VIEW QUESTION

Jquery – manipulating Array object

i have bellow array object var datasource = [ {"Region": "America", "Total_Time_Spent": "10", "YearMonth": "2023 - October", "projectname":"Project 1"}, {"Region": "America", "Total_Time_Spent": "20", "YearMonth": "2023 - October", "projectname":"Project 2"}, {"Region": "America", "Total_Time_Spent": "30", "YearMonth": "2023 - June", "projectname":"Project 3"}, {"Region":…

VIEW QUESTION

Jquery – how can i hade the text behind the radio bulls

This is my html: $("input[name=item_35174][value='1']").prop('checked', true); $("input[name='item_35174']").change(function() { $("label[for=item_35317], input[type=radio][name=item_35317]").toggle(this.value == "0"); $("label[for=item_35175], input#item_35175").hide(); $("label[for=item_35176], input#item_35176").hide(); $("label[for=item_35177], input#item_35177").hide(); }); $("input[name='item_35174']:checked").change(); //trigger correct state onload $("input[name='item_35317']").change(function() { $("label[for=item_35175], input#item_35175").toggle(this.value == "1"); $("label[for=item_35176], input#item_35176").toggle(this.value == "1"); $("label[for=item_35177], input#item_35177").toggle(this.value == "1"); }); $("input[name='item_35317']:checked").change();…

VIEW QUESTION
Back To Top
Search