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: 
Here you go with the solution <https://jsfiddle.net/w0nefkfo/>

```js
$('button').prop('disabled', true);
setTimeout(function(){
 $('button').prop('disabled', false);
}, 2000);
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button type="submit" value="submit">Submit</button>
```
```
 $('button').prop('disabled', true);
  setTimeout(function () {
      $('button').prop('disabled', false);
  }, 3000);

```