Aug 4, 2016

Compare label value with drop down list selected value using JQuery script in Spotfire

$("#ce490455e9f2484eb8554b5d2c8b3e96").change(function()
{
var date1= $("#9593584a2feb42caa8c321d16286a8fa").text();
var date2= $("#ce490455e9f2484eb8554b5d2c8b3e96 option:selected").text();
//var x =$("select[name='#ce490455e9f2484eb8554b5d2c8b3e96'] option:selected").value;

if(date1==date2){
             alert('Same date has been selected to compare');
             return false;
         }
    });

Spotfire Popup message with JS/javascript

Text area:

test




JS script:
$("#ada5d101fe90415aa047b7f47bb2d97e").click(showDialog);

function showDialog(){
   //change the title attribute since we can't in html editor
   $("#dialog").prop({title:'Rapid Security Analyzer Assumptions'}).dialog();
};