I have a variable in jQuery that looks like this...
var myvariable = '<iframe id="myiframe" class="thisiframe">';
I am trying to extract the id from this so looking to get 'myiframe'
What is the best way of doing this, should I be using regex or is there a jQuery function that would be better to use?
Or can I target the iframe directly using this variable?