Jump to content

Recommended Posts

Posted

Hi All,

In my dashboard there isa checkbox filter added in text area which has two values:

1. Machine Data

2.(Empty)

I am hiding this empty value using below html/javascript, this works fine in 7.11 but is not working in 10.6 version:

 

 

 

 

var hideEmpty = function(){

document.querySelectorAll("#filter .sf-element.sf-element-filter-item:last-child")[0].style.display='none'

}if(this['ps']) clearInterval(ps)

ps = setInterval(hideEmpty,100)

 

Any modifications to be made in this code

Regards,

Prateek

Posted

Hi Shandilya,Below is the query in developer tools:(function anonymous(

) {

var $ = window.compatibilityJQuery; var jQuery = $; var SF = {setBusy: window.tempTextAreaSetBusy}; delete window.tempTextAreaSetBusy;var hideEmpty = function(){

 document.querySelectorAll("#filter .sf-element.sf-element-filter-item:last-child")[0].style.display='none'

}if(this['ps']) clearInterval(ps)

ps = setInterval(hideEmpty,0)})it is giving error for style.display='none'-  cannot read property style of undefined

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...