Try:
var value = $("param[name="movie"]").val();//get attribyte value
if(value && (value = value.match(/secEncCode=(\w+)/))){//reg exp
value = value[1];//get first pocket
console.log(value);//res
}
update by comment
If you want change secEncCode value:
var param = $("param[name="movie"]"),//get obj
value=param.val(),//get attribyte value
key;
if(value && (key = value.match(/secEncCode=(\w+)/))){//reg exp
key = key[1];//get first pocket
param.val(value.replace(key, "YOUR NEW KEY"));//replace key
}
2
solved Find and parse url in dom-element value using RegExp and jQuery [closed]