मैं मैरियनेट एप्लिकेशन में जेनेरेटिंग मोडल-डायलॉग के लिए ट्विटर से बूटस्ट्रैप का उपयोग कर रहा हूं।मोडल रूपों में पहले फ़ील्ड पर फ़ोकस करें
मैं जानना चाहता हूं कि फैंसी जावास्क्रिप्ट का उपयोग किये बिना मोडल रूपों में पहले फ़ील्ड को फ़ोकस करने का सबसे अच्छा तरीका क्या है।
यहाँ मेरी कोड:
var app = new Marionette.Application();
app.addRegions({
modal: '#modal'
});
app.vent.on('showModal', function (view) {
var modal = app.modal;
modal.show(view);
modal.$el.modal({
show: true,
keyboard: true,
backdrop: 'static'
});
});
संभावित डुप्लिकेट [ट्विटर बूटस्ट्रैप मोडल इनपुट क्षेत्र फोकस] (http://stackoverflow.com/questions/15474862/twitter-bootstrap-modal-input-field-focus) –