Question: Here is my sql table

```
create table Poll_Question_Table (
PollQuestionId int primary key,
PollQuestionTex varchar(max),
PollStatus int ,
PollStartDate date,
PollEndDate date
)

```

i Want to change th status value from 1 to 0 if the current date pass the end date (dateline ) using function or trigger ..... tnx for ur help

Answer: 
Your Code is fine.
The problem you are having is that your modal is beeing added to a table. Which does won't work with bootstrap.

Check if you are maybe able to put the modal outside the table and everything should work just fine.

Greetings
replace in your fiddle code

```
$('#showModal1').click(function() {

```

to new code

```
$(document).on('click', '[id^=showModal]', function() {

```