Response title
This is preview!
<label>some text
<input type="text" name="form_id" value="write something" />
</label>
<label for="form_id">some text</label>
<input type="text" id="form_id" name="form_id" value="write something" />
(function($,window){
$.widget("mobile.somesome",$.mobile.widget, {
_create: function() {
var self = this;
console.log("here we go");
...
}
});
// initialize
var trigger = $('div:jqmData(somesome="true")').live( 'pagecreate',function(event){
if ($('html').data('somesome-init', 'Off')) {
$('html').data('somesome-init', 'On')
console.log("trigger fired");
trigger.somesome();
}
});
}) (jQuery,this);
However, if I start on either page1.html or page3.html and then call page2.html hoping the plugin would fire, I only get the console "trigger fired", so I'm detecting correct, but the plugin itself doesn't run.
Can anybody give me a hint as to why?
THANKS!
© 2013 jQuery Foundation
Sponsored by and others.