Question: In my code:(works well on tf1.0)

```
from tensorflow.contrib.rnn.python.ops  import core_rnn
from tensorflow.contrib.rnn.python.ops  import core_rnn_cell
from tensorflow.contrib.rnn.python.ops  import core_rnn_cell_impl

```

report error with tf1.2:
 from tensorflow.contrib.rnn.python.ops import core\_rnn
ImportError: cannot import name 'core\_rnn'

Answer: 
`setTimeout` is not a method of a jQuery element. Change your code as follows:

```
$('button').prop('disabled', true);

setTimeout(function() { 
  $('button').prop('disabled', false)
}, 3000);

```
First disable the button like `$('button').attr("disabled", "disabled");` and use `setTimeout` and assign timeout value.

```js
$('button').attr("disabled", "disabled");
//or you can use #btn ref: $('#btn').attr("disabled", "disabled"); 
setTimeout(function() 
{
    $('button').removeAttr('disabled');
}, 3000);//3000 ms = 3 second.
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<button id="btn">Submit</button>
```

ref: [Window setTimeout() Method](https://www.w3schools.com/jsref/met_win_settimeout.asp)