0

I need to set placeholder for text-field in my backbone view template. I did it in following way

<input type="text" name="name" value="" placeholder="Enter Group Name">

but this is not working in IE9 and greater versions. I have googled around and found some java script plugin for achieving this in html but for working in IE for my template what needs to do? any specific workaround or solution for this problem

mu is too short
  • 426,620
  • 70
  • 833
  • 800
Sunny
  • 468
  • 6
  • 22
  • 1
    Duplication - http://stackoverflow.com/questions/6366021/placeholder-in-ie9 – Evgeniy Oct 13 '14 at 09:50
  • I am looking for a solution in backbone template – Sunny Oct 13 '14 at 10:36
  • so what stops u use JQ plugin in Backbone ? – Evgeniy Oct 13 '14 at 10:45
  • I am new to backbone and not know where I can use these plugins and other javascript code. is there any after render event or where to write all these code? – Sunny Oct 13 '14 at 12:52
  • 2
    u can use any JQ plugin in view after you have rendered view and appended html. `this.$el.html( this.template(this.model.toJSON())); this.$el.superPlugin({ make: 'cool' })` – Evgeniy Oct 13 '14 at 13:05

0 Answers0