Tag Info

New answers tagged

0

In your JSLink script start with (window.jQuery || document.write('<script src="//ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.0.min.js"><\/script>')); Result will be something like this. (function () { (window.jQuery || document.write('<script src="//ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.0.min.js"><\/script>')); var ...


1

This will work only if the drop-down control has an option with empty value. Try below $("select[title='"+Hide_Column+"']").val(''); Another option is to select the first option as below $("select[title='"+Hide_Column+"']").find('option:eq(0)').prop('selected', true);


0

Thanks Amal your code just made me to go in the right direction. Actually i have passed empty values to my sharepoint dropdown values . So on change of the dropdown event i am getting "Undefined" . I used the below Code to achieve my scenario. I have another issue which i will post it in a new one. DropDownColum.change(function() { var value = ...


0

You can change your logic as below $(document).ready(function(){ $("select[title^='Drop'").change(function(){ var title = $(this).attr("title"); var selected = $(this).find("option:selected").text(); if(title == "Drop1" && selected == "") { $(select[title='Drop2']).hide(); } else{ ...



Top 50 recent answers are included