jscolor init dynamic buttons with options

March 05, 2018, at 3:02 PM

I have bunch of buttons on my page, each has an id and they are to run a function when onFineChange is triggered. I had those buttons hardcoded in my page like this:

function someFunc(){ 
// do stuff 
<button id="ECGColor" class="colorButton jscolor  
                                            {valueElement: 'ECGColor_valueInput', styleElement:'ECGColor_styleInput', closable:true, onFineChange:'someFunc(1)', closeText:'OK' }"> 
<i class="fa fa-paint-brush"></i> ECG Group</button> 
<button id="IBPColor" class="colorButton jscolor  
                                            {valueElement: 'ECGColor_valueInput', styleElement:'ECGColor_styleInput', closable:true, onFineChange:'someFunc(2)', closeText:'OK' }"> 
<i class="fa fa-paint-brush"></i> IBP Group</button>

Now, every thing is working fine, but I need to change the function that is triggered by 'onFineChange' based on some conditions, and maybe re-init the button if needed. how could I do that?


Custom drag-scroll slideshow

Custom drag-scroll slideshow

I am looking for way to recreate a slideshow like this for my portfolio websiteI was trying to find a snippet/library/tutorial to get the idea how the slider works and changes the images in slideshow but without any luck

How to convert &ldquo;mm/dd/yyyy HH:MM AM&rdquo; to 2018-03-05T08:27:49.338Z in jquery

How to convert “mm/dd/yyyy HH:MM AM” to 2018-03-05T08:27:49.338Z in jquery

i want to convert "03/07/2018 10:00 AM" string to UTC format , i tried below code but it isn't working

Preview of a Uploaded PDF and Image File

Preview of a Uploaded PDF and Image File

I have created a Document Uploading grid view Page