JavaScript how to change the combo box to text when i select other in anyone of <td> change combo box text size,how to change text in

 1. Instead of creating a new tag element 
 2. we can just replace the existing select tag to input tag
 3. Pros of using this method will reduce the script.

Refer this [plunker][1] for further information.


  [1]: https://plnkr.co/edit/2ZztfpmvAhJZMQGtgZPw?p=preview
Answer:1

Or something like this with jQuery:

$('#inp').change(function() {
  if (this.value === 'S5') {
    $(this).replaceWith('<input name="inp" type="text">')
  }
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<select name="inp" id="inp">
  <option value="S1">YES</option>
  <option value="S2">NO</option>
  <option value="S3">OK</option>
  <option value="S4">NOT OK</option>
  <option value="S5">Other</option>
</select>
Answer:2

I am new to JavaScript and trying to find the difference between two JSON Objects. The structure of the JSON object and its data is shown below. I got a code online which works for a normal JSON ...

I am new to JavaScript and trying to find the difference between two JSON Objects. The structure of the JSON object and its data is shown below. I got a code online which works for a normal JSON ...

  1. compare json objects java
  2. compare json objects javascript
  3. compare json objects online
  4. compare json objects python
  5. compare json objects c#
  6. compare json objects nodejs
  7. compare json objects powershell
  8. compare json objects php
  9. compare json objects jackson
  10. compare json objects jquery
  11. compare json objects
  12. compare two json objects java
  13. compare two json objects javascript
  14. compare two json objects
  15. compare two json objects online
  16. compare 2 json objects java
  17. compare 2 json objects
  18. compare 2 json objects javascript
  19. compare two json objects python

I'm learning Angular 2. I'm using a LocationService with an Observable that hands me the coordinates after some time. This is my code. location.service.ts public getLocation(): Observable<any> ...

I'm learning Angular 2. I'm using a LocationService with an Observable that hands me the coordinates after some time. This is my code. location.service.ts public getLocation(): Observable<any> ...

  1. angular subscribe when to unsubscribe
  2. angular subscribe when done
  3. angular subscribe when
  4. angular subscribe when all
  5. angular subscribe when complete
  6. angular when subscribe finished

I'm new to js/programming and just making a simple calculator using prompt. I'm trying to validate that what's been entered are numbers and not strings. I tried this var operatorType = prompt("Do ...

I'm new to js/programming and just making a simple calculator using prompt. I'm trying to validate that what's been entered are numbers and not strings. I tried this var operatorType = prompt("Do ...

  1. if/else statement java
  2. if/else statement python
  3. if/else statement c++
  4. if/else statement javascript
  5. if/else statement code.org
  6. if/else statement r
  7. if/else statement excel
  8. if else statement
  9. if else statement in c
  10. if else statement java
  11. if else statement python
  12. if else statement in c example
  13. if else statement excel
  14. if else statement in r
  15. if else statement javascript
  16. if else statement example
  17. if else statement matlab
  18. if else statement in sql
  19. if else statement java exercises
  20. if else statement arduino

I have an AngulaarJS application where users select the day they want to view and it prints on the calendar the day and the next 30 days. The intended functionality needs to be so that when a user ...

I have an AngulaarJS application where users select the day they want to view and it prints on the calendar the day and the next 30 days. The intended functionality needs to be so that when a user ...

  1. how to get current date in angularjs
  2. angularjs add days to current date